dbTalk Databases Forums  

[BUGS] BUG #1345: pgsql character comparison bug

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


Discuss [BUGS] BUG #1345: pgsql character comparison bug in the mailing.database.pgsql-bugs forum.



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

Default [BUGS] BUG #1345: pgsql character comparison bug - 12-10-2004 , 06:13 PM







The following bug has been logged online:

Bug reference: 1345
Logged by: Sir Ki-Sirk

Email address: akbarofmg (AT) empal (DOT) com

PostgreSQL version: 8.0 Beta

Operating system: WINDOW 2003 Enterprise

Description: pgsql character comparison bug

Details:


I am a C++ and pgsql beginner.
When using PostgreSQL 8.0.0 Beta 5 in Window-2003-Enterprise
I find that PostgreSQL 8.0.0 Beta 5 has simple-character-comparison-bug

see below;

QUERY=

select
chr(8) <chr(9) AS A1,
chr(9) <chr(10) AS A2,
chr(10)<chr(11) AS A3,
chr(11)<chr(12) AS A4,
chr(12)<chr(13) AS A5,
chr(13)<chr(14) AS A6,
chr(14)<chr(15) AS A7,
chr(15)<chr(16) AS A8,
chr(16)<chr(17) AS A9;

Exec --->

a1 | a2 | a3 | a4 | a5 | a6 | a7 | a8 | a9
----+----+----+----+----+----+----+----+---
t | t | t | t | t | f | t | t | t
(1 row)

Oh! the value of a6 field is "f" !!!

Please Fix this BUG


---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] BUG #1345: pgsql character comparison bug - 12-11-2004 , 11:42 AM






"PostgreSQL Bugs List" <pgsql-bugs (AT) postgresql (DOT) org> writes:
Quote:
select
chr(13)<chr(14) AS A6,

Oh! the value of a6 field is "f" !!!
Works fine for me. Check your locale setting.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster


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.