Received: from summersault.com (nollie.summersault.com [208.196.32.199]) by postgresql.org (8.11.3/8.11.1) with SMTP id f57EeiE45385 for ; Thu, 7 Jun 2001 10:40:44 -0400 (EDT) (envelope-from mark@summersault.com) Received: (qmail 19491 invoked from network); 7 Jun 2001 14:40:34 -0000 Received: from hoobella.summersault.com (HELO summersault.com) (208.196.32.195) by nollie.summersault.com with SMTP; 7 Jun 2001 14:40:34 -0000 Message-ID: <3B1F9266.EEE2D1F0@summersault.com> Date: Thu, 07 Jun 2001 09:40:40 -0500 From: Mark Stosberg Reply-To: mark@summersault.com Organization: Summersault X-Mailer: Mozilla 4.77C-CCK-MCD {C-UDP; EBM-APPLE} (Macintosh; U; PPC) X-Accept-Language: en,pdf MIME-Version: 1.0 To: Stephan Szabo CC: Tom Lane , pgsql-sql@postgresql.org, pgsql-hackers@postgresql.org Subject: Re: behavior of ' = NULL' vs. MySQL vs. Standards References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200106/100 X-Sequence-Number: 3319 Stephan Szabo wrote: > > On Wed, 6 Jun 2001, Tom Lane wrote: > > > Stephan Szabo writes: > > > Yes, column = NULL should *never* return true according to the spec (it > > > should always return NULL in fact as stated). The reason for breaking > > > with the spec is AFAIK to work with broken microsoft clients that seem to > > > think that =NULL is a meaningful test and generate queries using that. > I'd rather have the default be the spec correct behavior > and let people configure their server to follow the misinterpretation. I like that idea as well. Someone like me who didn't know that this feature was in there for M$ could have assumed it _was_ standard behavior, and started using it as a habit. Then when I started porting my code to another database, I'd have an extra surprise in for me. :) Rather than being an option targeted at just this piece of grammer, perhaps it could a piece of a potentially larger option of "stricter standards compliance." I realize there are a number of useful extensions to the SQL standard in Postgres (which I like and use.), but it seems like there would be uses for minimizing non-standard behavior, as well. Thank you all for your contributions to Postgres-- I use it everyday. :) -mark http://mark.stosberg.com/