Re: BUG #2317: Wrong sorting order for (VW)

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: BUG #2317: Wrong sorting order for (VW)
Дата
Msg-id 6BCB9D8A16AC4241919521715F4D8BCEA3513D@algol.sollentuna.se
обсуждение исходный текст
Ответ на BUG #2317: Wrong sorting order for (VW)  ("TomasKlockar" <tomask@omicron.se>)
Ответы Re: BUG #2317: Wrong sorting order for (VW)  (Tomas Klockar <tomask@omicron.se>)
Список pgsql-bugs
> > The following bug has been logged online:
> >
> > Bug reference:      2317
> > Logged by:          TomasKlockar
> > Email address:      tomask@omicron.se
> > PostgreSQL version: 7.3.2/7.4.7
> > Operating system:   linux(fedora)
> > Description:        Wrong sorting order for (VW)
> > Details:
> >
> > SELECT cname FROM clients ORDER BY cname;
> >
> > sorts W before V and that is a mistake.
> >
> > the result is
> >
> > V
> > W
> > WHI
> > Vi
> > Wi
> > Volvo
> >
> > Correct order would be to place all vV before all wW.
> >
> > I think the database was initialized with UTF8 but it might=20
> have been=20
> > ISO_8859-1, however the error is easily repeatable and ill=20
> be happy to=20
> > provide a dump.
> >
> > I tested this on 7.3.2 and 7.4.7 and the error was repeatable.
>=20
> I think the most important thing we'd need to know is what=20
> locale the database was initialized with in order to try to reproduce.
>=20
> If you put similar data in a file and use the unix "sort"=20
> command with the same locale, do you get the same order?

That looks like the typical swedish locale, which sorts V and W as the
same character. Yes, that can be very annoying for some of us :-), but
that's the way it's defined.

//Magnus

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

Предыдущее
От: tomas@tuxteam.de (Tomas Zerolo)
Дата:
Сообщение: Re: BUG #2318: language
Следующее
От: "Magnus Hagander"
Дата:
Сообщение: Re: BUG #2317: Wrong sorting order for (VW)