Re: BUG #1590: Comparison Operation with Strings

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: BUG #1590: Comparison Operation with Strings
Дата
Msg-id 20050410132226.J82492@megazone.bigpanda.com
обсуждение исходный текст
Ответ на BUG #1590: Comparison Operation with Strings  ("Michaela" <rambo1503-postgresql@yahoo.de>)
Список pgsql-bugs
On Thu, 7 Apr 2005, Michaela wrote:

> The following bug has been logged online:
>
> Bug reference:      1590
> Logged by:          Michaela
> Email address:      rambo1503-postgresql@yahoo.de
> PostgreSQL version: 8.0.1
> Operating system:   SuSE Linux 9.1
> Description:        Comparison Operation with Strings
> Details:
>
> Hello!
>
> conditions:
> -----------
> Our database is defined with SQL_ASCII. We also tested Latin1.

This depends on the locale, not the encoding.

Specifically, for example, 'A' < '? ABC' in en_US and probably other
similar locales.

For the data you give, en_US and de_DE appear to sort as:
?
100
ABC
? ABC
B
Z

If you want byte order sorting, you need to make sure to initdb in C
locale.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #1590: Comparison Operation with Strings
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #1591: BETWEEN NULL AND NULL causes crash