Received: from wolff.to (wolff.to [66.92.219.49] (may be forged)) by postgresql.org (8.11.3/8.11.4) with SMTP id fBL19qm63487 for ; Thu, 20 Dec 2001 20:09:52 -0500 (EST) (envelope-from bruno@[66.92.219.49]) Received: (qmail 16576 invoked by uid 500); 21 Dec 2001 01:09:35 -0000 Date: Thu, 20 Dec 2001 19:09:35 -0600 From: Bruno Wolff III To: "Bob Smith, Hammett & Edison, Inc." Cc: pgsql-admin@postgresql.org Subject: Re: Odd behavior with NULL value Message-ID: <20011220190935.A16538@wolff.to> Mail-Followup-To: "Bob Smith, Hammett & Edison, Inc." , pgsql-admin@postgresql.org References: <000001411043091739073@h-e.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <000001411043091739073@h-e.com>; from bsmith@h-e.com on Thu, Dec 20, 2001 at 04:24:33PM -0800 X-Archive-Number: 200112/145 X-Sequence-Number: 2868 On Thu, Dec 20, 2001 at 04:24:33PM -0800, "Bob Smith, Hammett & Edison, Inc." wrote: > See example below of using NULL values with type DATE. It behaves > strangely in expressions, "(x <> null)" gives an entirely different > result than "not(x = null)". Is this intended behavior, if so, why? > If not, is this a bug? There is a hack which will be off by default in 7.2 that changes 'x = null' into 'x is null' for compatibility with sqlserver.