From: Tom Lane <tgl@sss.pgh.pa.us>
To: john@august.com
Cc: pgsql-sql@postgresql.org
Subject: Re: not null - trivial, unexpected behavior
Date: Sat, 16 Jun 2001 12:21:16 -0400
Message-ID: <28069.992708476@sss.pgh.pa.us> (raw)
In-Reply-To: <20010616151611.40654.qmail@web10006.mail.yahoo.com>
References: <20010616151611.40654.qmail@web10006.mail.yahoo.com>
John Scott <jmscott@yahoo.com> writes:
> select count(*) from A where b = null; /* Returns 1, ok */
> select count(*) from A where b != null; /* Returns 0 ... not ok! */
Uh ... there have been several threads about this just in the past
couple days. See for example
http://www.ca.postgresql.org/mhonarc/pgsql-sql/2001-06/msg00102.html
and followups.
regards, tom lane
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: tgl@sss.pgh.pa.us, john@august.com
Subject: Re: not null - trivial, unexpected behavior
In-Reply-To: <28069.992708476@sss.pgh.pa.us>
* 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