Re: BUG #2309: Wrong string comparison

Поиск
Список
Период
Сортировка
От Volkan YAZICI
Тема Re: BUG #2309: Wrong string comparison
Дата
Msg-id 20060310073611.GB248@alamut
обсуждение исходный текст
Ответ на BUG #2309: Wrong string comparison  ("Yury Don" <yura@vpcit.ru>)
Ответы Re: BUG #2309: Wrong string comparison  (Yury Don <yura@vpcit.ru>)
Список pgsql-bugs
Hi,

On Mar 09 02:00, Yury Don wrote:
> Looks like string comparison operators ignore spaces isnside of string.
> Because of this sorting on text fields is wrong.
>
> mdb=# select 'a z'::text>'ad'::text;
>  ?column?
> ----------
>  t

PostgreSQL relies on your locale for collation. Therefore, first you
need to check if your locale settings are working. For instance:

$ TEXT="a z\nad"
$ echo -e $TEXT | LC_COLLATE=tr_TR.iso88599 sort
ad
a z
$ echo -e $TEXT | LC_COLLATE=C sort
a z
ad


Regards.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #2311: Toast table chunk_id overflow
Следующее
От: Yury Don
Дата:
Сообщение: Re: BUG #2309: Wrong string comparison