Re: UTF-8 and LIKE vs = - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: UTF-8 and LIKE vs =
Date
Msg-id 200408232222.01447.peter_e@gmx.net
Whole thread Raw
In response to UTF-8 and LIKE vs =  (David Wheeler <david@kineticode.com>)
Responses Re: UTF-8 and LIKE vs =
List pgsql-general
David Wheeler wrote:
> Any idea why = works here and LIKE and ~ wouldn't?

Because LIKE does a character-by-character matching and = uses the
operating system locale, which could do anything.  If you set the
locale to C, you should get matching results.  Which one is "better"
depends on the semantics of the language, which I cannot judge here.

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


pgsql-general by date:

Previous
From: Ben
Date:
Subject: Re: Unsupported 3rd-party solutions (Was: Few questions
Next
From: "Joshua D. Drake"
Date:
Subject: Re: Unsupported 3rd-party solutions (Was: Few questions