Re: unique constraint - bug? - Mailing list pgsql-general

From Tom Lane
Subject Re: unique constraint - bug?
Date
Msg-id 24945.964106710@sss.pgh.pa.us
Whole thread Raw
In response to Re: unique constraint - bug?  (mikeo <mikeo@spectrumtelecorp.com>)
Responses Re: unique constraint - bug?  (mikeo <mikeo@spectrumtelecorp.com>)
List pgsql-general
mikeo <mikeo@spectrumtelecorp.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

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] 8Ko limitation
Next
From: Philip Warner
Date:
Subject: Re: unique constraint - bug?