Re: [BUGS] (null) != (null) ? - Mailing list pgsql-bugs

From Todd Vierling
Subject Re: [BUGS] (null) != (null) ?
Date
Msg-id Pine.NEB.4.10.9910261040460.26623-100000@server.int.duh.org
Whole thread Raw
In response to Re: [BUGS] (null) != (null) ?  (Todd Vierling <tv@pobox.com>)
Responses Re: [BUGS] (null) != (null) ?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
On Tue, 26 Oct 1999, Todd Vierling wrote:

: : NULL = NULL does not yield TRUE, it yields NULL.  For that matter,
: : NULL != NULL does not yield FALSE --- it yields NULL.  This is a
: : basic consequence of the semantics of NULL.

: It seems _extremely_ counter-intuitive, especially in cases where both
: fields are in fact the same type.

Although I did find a SQL92 document on the web in the amount of time this
took to copy back to me, and I see the clause about NULL <comp op>
<anything> being unknown.  Which, I imagine, means "implementation
dependent".

--
-- Todd Vierling (tv@pobox.com)


pgsql-bugs by date:

Previous
From: Todd Vierling
Date:
Subject: Re: [BUGS] (null) != (null) ?
Next
From: Tom Lane
Date:
Subject: Re: [BUGS] (null) != (null) ?