Re: citex regression fails with de.UTF8 locale

Поиск
Список
Период
Сортировка
От David E. Wheeler
Тема Re: citex regression fails with de.UTF8 locale
Дата
Msg-id 90268D36-A5AD-4038-90C5-01A430ADC0C3@kineticode.com
обсуждение исходный текст
Ответ на Re: citex regression fails with de.UTF8 locale  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Список pgsql-hackers
On Apr 23, 2009, at 12:22 AM, Heikki Linnakangas wrote:

> Zdenek Kotala wrote:
>> It seems to me that citex_cmp can return any integer value. It  
>> depends
>> what wcscoll() returns. I think it should be changed to:
>> SELECT citext_cmp('B'::citext, 'a'::citext) > 0 AS one;
>
> The comment in varstr_cmp() claims that it returns -1, 0 or 1.  
> That's not accurate then.
>
> Comment and test case fixed. I considered changing varstr_cmp to  
> really return -1, 0 or 1, but I didn't because the behavior has been  
> unchanged for ages and all the callers are happy with it. That's a  
> heavily called function so any extra cycles there could make a  
> difference.

Thanks, I also changed it in my version for 8.3.
  https://svn.kineticode.com/citext/trunk/

Best,

David



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Copyright waiver from Helios (fix for non-BSD copyright)
Следующее
От: Tom Lane
Дата:
Сообщение: Why do we let CREATE DATABASE reassign encoding?