Re: Case-Insensitve Text Comparison

Поиск
Список
Период
Сортировка
От David E. Wheeler
Тема Re: Case-Insensitve Text Comparison
Дата
Msg-id EC2BF19A-C839-485F-8324-996A26788914@kineticode.com
обсуждение исходный текст
Ответ на Re: Case-Insensitve Text Comparison  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Case-Insensitve Text Comparison
Список pgsql-hackers
On Jun 1, 2008, at 21:08, Tom Lane wrote:

>> 1. Does the use of the tolower() C function in the citext data type  
>> on
>> pgfoundry basically give me the same results as using lower() in my
>> SQL has for all these years?
>
> [ broken record... ]  Kinda depends on your locale.  However,  
> tolower()
> is 100% guaranteed not to work for multibyte encodings, so citext is
> quite useless if you're using UTF8.  This is fixable, no doubt, but
> it's not fixed in the project as it stands.

Would the use of str_tolower() in formatting.c fix that?

Thanks,

David


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Pavel Stehule"
Дата:
Сообщение: Proposal: new function array_init
Следующее
От: Greg Smith
Дата:
Сообщение: Re: Overhauling GUCS