Re: BUG #1367: Unique constraint fails with some values

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: BUG #1367: Unique constraint fails with some values
Дата
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE4764A1@algol.sollentuna.se
обсуждение исходный текст
Ответ на BUG #1367: Unique constraint fails with some values  ("Hong Yuan" <hongyuan@homemaster.cn>)
Список pgsql-bugs
>Bug reference:      1367
>Logged by:          Hong Yuan
>Email address:      hongyuan@homemaster.cn
>PostgreSQL version: 8.0
>Operating system:   Windows XP Chinese Simplified
>Description:        Unique constraint fails with some values
>Details:=20
>
>I found that the unique constraint fails sometimes when the=20
>varchar column
>contain some specific Chinese characters. Here is an example:
>
>CREATE TABLE test
>(
>  col1 varchar(10),
>  CONSTRAINT col1 UNIQUE (col1)
>)=20
>WITHOUT OIDS;
>
>insert into test values('=E5=A4=A7');
>insert into test values('=E5=A4=A7');
>insert into test values('=E5=A4=A7');
>
>While the second and third inserts should fail, they do not.=20
>With some other
>Chinese characters, the constraint is observed.
>
>The character '=E5=A4=A7' has utf-8 encoding '\xe5\xa4\xa7'.
>
>The database is created with UNICODE encoding. The problem is=20
>present with
>version 8.0.0-rc2.


UNICODE encoding is not properly supported on Win32 at this time.=20

//Magnus

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #1367: Unique constraint fails with some values
Следующее
От: "T.J."
Дата:
Сообщение: BUG #1369: RC3 Compilation fails on mingw