dbTalk Databases Forums  

[BUGS] BUG #1330: Incorrect String Order By In tr_TR Locale

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #1330: Incorrect String Order By In tr_TR Locale in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
PostgreSQL Bugs List
 
Posts: n/a

Default [BUGS] BUG #1330: Incorrect String Order By In tr_TR Locale - 11-26-2004 , 10:29 AM







The following bug has been logged online:

Bug reference: 1330
Logged by: Özgür Çaycı

Email address: ozgur (AT) cayci (DOT) org

PostgreSQL version: 8.0 Beta

Operating system: Debian Woody

Description: Incorrect String Order By In tr_TR Locale

Details:

I use 8.0 Beta-5.

I am using a PostgreSQL cluster which I have created with locale tr_TR. When
I use "Order By", the strings are not ordered correctly. The spaces are
ignored when I use "Order By" clause. Here is a sample SQL dump to re-create
this situation:

CREATE TABLE mytable (
mytext character varying(255)
);

INSERT INTO mytable VALUES ('Güngör, Ahmet');
INSERT INTO mytable VALUES ('Güngör, Bengi');
INSERT INTO mytable VALUES ('Güngördü, Ersin');
INSERT INTO mytable VALUES ('Güngören, Bora');
INSERT INTO mytable VALUES ('Güngör, Erhan');
INSERT INTO mytable VALUES ('Güngör, Erol');

When I try 'Select * FROM mytable ORDER BY mytext ASC'

I get the following output:

Güngör, Ahmet
Güngör, Bengi
Güngördü, Ersin
Güngören, Bora
Güngör, Erhan
Güngör, Erol

The expected result is as follows:

Güngör, Ahmet
Güngör, Bengi
Güngör, Erhan
Güngör, Erol
Güngördü, Ersin
Güngören, Bora

Özgür





---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Reply With Quote
  #2  
Old   
Devrim GUNDUZ
 
Posts: n/a

Default Re: [BUGS] BUG #1330: Incorrect String Order By In tr_TR Locale - 11-26-2004 , 10:36 AM






-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi,

On Fri, 26 Nov 2004, PostgreSQL Bugs List wrote:

Quote:
I use 8.0 Beta-5.

I am using a PostgreSQL cluster which I have created with locale tr_TR. When
I use "Order By", the strings are not ordered correctly. The spaces are
ignored when I use "Order By" clause. Here is a sample SQL dump to re-create
this situation:
<snip>
Quote:
When I try 'Select * FROM mytable ORDER BY mytext ASC'

I get the following output:

Güngör, Ahmet
Güngör, Bengi
Güngördü, Ersin
Güngören, Bora
Güngör, Erhan
Güngör, Erol

The expected result is as follows:

Güngör, Ahmet
Güngör, Bengi
Güngör, Erhan
Güngör, Erol
Güngördü, Ersin
Güngören, Bora

Upgrade to latest glibc. Debian unstable does not have this problem.
http://sources.redhat.com/cgi-bin/cv...?cvsroot=glibc

See

http://yunus.listweb.bilkent.edu.tr/.../May/0061.html
and all mails in the thread for more information.

Regards,
- --
Devrim GUNDUZ
devrim~gunduz.org devrim.gunduz~linux.org.tr
http://www.tdmsoft.com
http://www.gunduz.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFBp1qStl86P3SPfQ4RAncwAJ9hXpZjz7FF3I/LgEKrVFqhvbbtVgCgtvsl
89QTPJs/hMk2jY292mGY8Iw=
=kPSL
-----END PGP SIGNATURE-----
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.