citex regression fails with de.UTF8 locale
| От | Zdenek Kotala |
|---|---|
| Тема | citex regression fails with de.UTF8 locale |
| Дата | |
| Msg-id | 1240468074.1275.7.camel@localhost обсуждение исходный текст |
| Ответы |
Re: citex regression fails with de.UTF8 locale
|
| Список | pgsql-hackers |
I setup more locale testing on gothic moth and citext regression test fails. See http://www.pgbuildfarm.org/cgi-bin/show_log.pl?nm=gothic_moth&dt=2009-04-22%2020:06:01 Problem is here: --------------------------------------------------- SELECT citext_cmp('B'::citext, 'a'::citext) AS one; one ----- ! 1 (1 row) -- Do some tests using a table and index. --- 216,222 ---- SELECT citext_cmp('B'::citext, 'a'::citext) AS one; one ----- ! 28 (1 row) -- Do some tests using a table and index. --------------------------------------------------- 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; Zdenek
В списке pgsql-hackers по дате отправления: