On Thu, Nov 29, 2007 at 12:39:30AM -0500, Andrew Dunstan wrote: > The attached patch works for me to eliminate the errors. Please test ASAP.
tested, works for me: #v+ # CREATE OR REPLACE FUNCTION test(TEXT) RETURNS bool language plperl as $$ return (shift =~ /[a-ząćęłńóśźżĄĆĘŁŃŚÓŹŻ0-9_-]+/i) || 0; $$; CREATE FUNCTION # select test('depesz'); test ------ t (1 row) # select test('depesząćęł'); test ------ t (1 row) # select test('depesząćęł$'); test ------ t (1 row) # select test('dePEsząĆęł$'); test ------ t (1 row) #v- depesz -- quicksil1er: "postgres is excellent, but like any DB it requires a highly paid DBA. here's my CV!" :) http://www.depesz.com/ - blog dla ciebie (i moje CV) ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match