From: David Dick <david_dick@iprimus.com.au>
To: Havasvölgyi Ottó <h.otto@freemail.hu>
Cc: pgsql-sql@postgresql.org
Subject: Re: NULL in IN clause
Date: Thu, 20 Oct 2005 06:43:56 +1000
Message-ID: <4356B00C.2040702@iprimus.com.au> (raw)
In-Reply-To: <001a01c5d4ea$243a1830$6400a8c0@OTTO>
References: <00cc01c5d00b$3a67dc70$1102a8c0@dream>
<1129681803.15546.21.camel@state.g2switchworks.com>
<001a01c5d4ea$243a1830$6400a8c0@OTTO>
As i understand it, the use of NULL in SQL means the value of the column
is unknown. Therefore that result would seem fair.
Havasvölgyi Ottó wrote:
> Hi,
>
> I have just run this command on 8.0.4 :
>
> SELECT 'foo' WHERE 0 NOT IN (NULL, 1);
>
> And it resulted is zero rows.
> Without NULL it is OK.
> Is this a bug, or the standard has such a rule?
>
> Best Regards,
> Otto
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: david_dick@iprimus.com.au, h.otto@freemail.hu
Subject: Re: NULL in IN clause
In-Reply-To: <4356B00C.2040702@iprimus.com.au>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox