Re: unique constraint - bug?

From: mikeo <mikeo(at)spectrumtelecorp(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>, pgsql-general(at)postgresql(dot)org
Subject: Re: unique constraint - bug?
Date: 2000-07-20 15:48:36
Message-ID: 3.0.1.32.20000720114836.0094fb10@pop.spectrumtelecorp.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

in oracle it does:

SQL> insert into x values ('1',null,'3');
insert into x values ('1',null,'3')
*
ERROR at line 1:
ORA-00001: unique constraint (DBA_USER.XIDX) violated

At 11:25 AM 7/20/00 -0400, Tom Lane wrote:
>mikeo <mikeo(at)spectrumtelecorp(dot)com> writes:
>> insert into x values ('1','','3');
>
>> insert into x values ('1','','3')
>> *
>> ERROR at line 1:
>> ORA-00001: unique constraint (DBA_USER.XIDX) violated
>
>> i'd say that it finds 1,null,3 equal the 2nd time around...
>
>Surely '' does not mean NULL, especially not in a CHAR() column.
>
> regards, tom lane
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Justin Hickey 2000-07-20 16:06:12 Re: 8Ko limitation
Previous Message Kyle 2000-07-20 15:46:32 Re: Aggregate time data on half hour interval