Re: citex regression fails with de.UTF8 locale
| От | Heikki Linnakangas |
|---|---|
| Тема | Re: citex regression fails with de.UTF8 locale |
| Дата | |
| Msg-id | 49F01724.8010306@enterprisedb.com обсуждение исходный текст |
| Ответ на | citex regression fails with de.UTF8 locale (Zdenek Kotala <Zdenek.Kotala@Sun.COM>) |
| Ответы |
Re: citex regression fails with de.UTF8 locale
Re: citex regression fails with de.UTF8 locale |
| Список | pgsql-hackers |
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.
-- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com
В списке pgsql-hackers по дате отправления: