Re: [BUGS] UNIQUE not honoured for NULL

2004-07-12 Thread Andreas Pflug
Gaetano Mendola wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bruno Wolff III wrote: | On Mon, Jul 12, 2004 at 14:47:34 +0200, | Gaetano Mendola <[EMAIL PROTECTED]> wrote: | |>As someone says NULL = NULL is false | | | As someone else pointed out, NULL = NULL is NULL which is not TRUE. Yes

Re: [BUGS] UNIQUE not honoured for NULL

2004-07-12 Thread Gaetano Mendola
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bruno Wolff III wrote: | On Mon, Jul 12, 2004 at 14:47:34 +0200, | Gaetano Mendola <[EMAIL PROTECTED]> wrote: | |>As someone says NULL = NULL is false | | | As someone else pointed out, NULL = NULL is NULL which is not TRUE. Yes, that it's better. Reg

Re: [BUGS] UNIQUE not honoured for NULL

2004-07-12 Thread Bruno Wolff III
On Mon, Jul 12, 2004 at 14:47:34 +0200, Gaetano Mendola <[EMAIL PROTECTED]> wrote: > > As someone says NULL = NULL is false As someone else pointed out, NULL = NULL is NULL which is not TRUE. ---(end of broadcast)--- TIP 8: explain analyze is you

Re: [BUGS] UNIQUE not honoured for NULL

2004-07-12 Thread Gaetano Mendola
David Newall wrote: PostgreSQL version: 7.4.3 (RPMs from ftp.au.postgresql.org) Operating Sysem: Fedora Core 1 CREATE TABLE t(i integer UNIQUE); INSERT INTO t VALUES (null); INSERT INTO t VALUES (null); SELECT coalesce(i,-999) FROM t; coalesce -- -999 -999 (2 rows) As someone sa

Re: [BUGS] UNIQUE not honoured for NULL

2004-07-07 Thread Stephan Szabo
On Tue, 6 Jul 2004, David Newall wrote: > PostgreSQL version: 7.4.3 (RPMs from ftp.au.postgresql.org) > > Operating Sysem: Fedora Core 1 > > CREATE TABLE t(i integer UNIQUE); > INSERT INTO t VALUES (null); > INSERT INTO t VALUES (null); > SELECT coalesce(i,-999) FROM t; > coalesce > -- >

Re: [BUGS] UNIQUE not honoured for NULL

2004-07-07 Thread Peter Eisentraut
David Newall wrote: > PostgreSQL version: 7.4.3 (RPMs from ftp.au.postgresql.org) > > Operating Sysem: Fedora Core 1 > > CREATE TABLE t(i integer UNIQUE); > INSERT INTO t VALUES (null); > INSERT INTO t VALUES (null); > SELECT coalesce(i,-999) FROM t; > coalesce > -- > -999 > -99