Re: case insensitive search with greek characters

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Giannis Vrentzos <gvre(at)gvre(dot)gr>, pgsql-general(at)postgresql(dot)org
Subject: Re: case insensitive search with greek characters
Date: 2004-08-15 19:42:01
Message-ID: 200408152142.01788.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Giannis Vrentzos wrote:
> I 'm testing postgres 8.0 beta 1 an i have the following problem. I
> have a field with value Γιάννης. If i execute the following query it
> does not returns any rows.
>
> select * from test where descr ilike '%γιαννης%'
>
> if i change the query to
>
> select * from test where descr ilike '%γιάννης%'
>
> everything is fine. As you can see the problem is at char α .

As far as I can see, this is correct, because the pattern in the second
query indeed does match you value whereas the first doesn't. Did you
expect ilike to be accent-insensitive? It is not.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2004-08-15 20:54:12 Re: pgcrypto/encrypt insertion failes due to \\ (2 slah being
Previous Message Frank van Vugt 2004-08-15 19:38:50 Re: (libpq) listen/notify messages are converted to lowercase and/or are case insensitive