Re: russian case-insensitive regexp search not working

From: Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: russian case-insensitive regexp search not working
Date: 2007-07-10 12:14:30
Message-ID: 20070710121430.GB4794@merkur.hilbert.loc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Tue, Jul 10, 2007 at 08:40:24AM +0400, alexander lunyov wrote:

>> Just to clarify: lower() on both sides of a comparison
>> should still work as expected on multibyte encodings ? It's
>> been suggested here before.
>
> lower() on both sides also does not working in my case, it still search for
> case-sensitive data. String in this example have first char capitalized,
> and result is the same. Seems that lower() can't lower multibyte character.
>
> db=> select lower('Зелен');
Well, no,

select my_string where lower(my_string) ~ lower(search_fragment);

Does that help ?

(~ does work for eg. German in my experience)

Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Zlatko Matic 2007-07-10 12:29:47 Re: plpgsql equivalent to plperl $_SHARED and plpythonu global dictionary GD?
Previous Message Alain Peyrat 2007-07-10 12:10:24 vacuumdb: PANIC: corrupted item pointer

Browse pgsql-hackers by date

  From Date Subject
Next Message alexander lunyov 2007-07-10 12:34:30 Re: russian case-insensitive regexp search not working
Previous Message Heikki Linnakangas 2007-07-10 11:43:06 Re: Maintaining cluster order on insert