dbTalk Databases Forums  

[BUGS] BUG #1046: UNIQUE INDEX BUG

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


Discuss [BUGS] BUG #1046: UNIQUE INDEX BUG in the mailing.database.pgsql-bugs forum.



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

Default [BUGS] BUG #1046: UNIQUE INDEX BUG - 01-10-2004 , 04:15 AM







The following bug has been logged online:

Bug reference: 1046
Logged by: Alfonso Baqueiro

Email address: abaqueirob (AT) hotmail (DOT) com

PostgreSQL version: 7.3.2

Operating system: Linux Redhat 9.0

Description: UNIQUE INDEX BUG

Details:

create table pru(
id integer not null primary key,
login varchar(10) unique not null
);

then when inserting values it says á = é = Ã* = ó = ú
(confuses different acuted vowels as if they were the same thing)

insert into pru (0, 'á');
-- no problem

But the error shows when trying the next:
insert into pru (1, 'é');
-- ERROR: cannot insert a duplicate key into unique index ...

Is a horrible bug that stops my migration from Centura SQLBase to PostgreSQL


---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

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

Default Re: [BUGS] BUG #1046: UNIQUE INDEX BUG - 01-10-2004 , 10:56 AM






"PostgreSQL Bugs List" <pgsql-bugs (AT) postgresql (DOT) org> writes:
Quote:
then when inserting values it says á = é = Ã* = ó = ú
(confuses different acuted vowels as if they were the same thing)
Sounds to me like you have selected the wrong character set (encoding)
or wrong locale when installing the database. If Postgres thinks those
strings are equal, it is because the strcoll() library routine says so.
You need to pick a locale that will behave the way you want.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org


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.