Re: [BUGS] Can't join on null values

2004-07-16 Thread davidn-postgres
People, Thanks for your help with my problem with NULL values. Also, particular thanks for a hint on where to find a copy of SQL-92 standard, something I didn't already have. It was annoying to discover that UNIQUE didn't have what I felt was the "obvious" meaning, but it doesn't and PostgreSQL

Re: [BUGS] Can't join on null values

2004-07-07 Thread Peter Eisentraut
Pavel Stehule wrote: > its not error. Only SQL specific :-) NULL <> NULL Au contraire, neither NULL = NULL nor NULL <> NULL is true. ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Re: [BUGS] Can't join on null values

2004-07-07 Thread Pavel Stehule
Hello, its not error. Only SQL specific :-) NULL <> NULL Regards Pavel Stehule 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 t1 (i INTEGER, j INTEGER); > INSERT INTO t1 VALUES (1, NULL

Re: [BUGS] Can't join on null values

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 t1 (i INTEGER, j INTEGER); > INSERT INTO t1 VALUES (1, NULL); > CREATE TABLE t2 AS SELECT * FROM t1; > SELECT * FROM t1 JOIN t2 USING (i, j);

Re: [BUGS] Can't join on null values

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 t1 (i INTEGER, j INTEGER); > INSERT INTO t1 VALUES (1, NULL); > CREATE TABLE t2 AS SELECT * FROM t1; > SELECT * FROM t1 JOIN t2 USING (i, j); > i | j > ---+--- > (

[BUGS] Can't join on null values

2004-07-07 Thread David Newall
PostgreSQL version: 7.4.3 (RPMs from ftp.au.postgresql.org) Operating Sysem: Fedora Core 1 CREATE TABLE t1 (i INTEGER, j INTEGER); INSERT INTO t1 VALUES (1, NULL); CREATE TABLE t2 AS SELECT * FROM t1; SELECT * FROM t1 JOIN t2 USING (i, j); i | j ---+--- (0 rows) I believe the one row, which is