Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.1) with SMTP id f5CGZ5E42162 for ; Tue, 12 Jun 2001 12:35:05 -0400 (EDT) (envelope-from pgsql-sql-owner@postgresql.org) Received: from golem.fourpalms.org (www.fourpalms.org [64.3.68.148]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f57DfcE18768; Thu, 7 Jun 2001 09:41:38 -0400 (EDT) (envelope-from lockhart@fourpalms.org) Received: from fourpalms.org (localhost.localdomain [127.0.0.1]) by golem.fourpalms.org (Postfix) with ESMTP id 0704BFEB6; Thu, 7 Jun 2001 13:41:33 +0000 (UTC) Message-ID: <3B1F848C.CAA0F438@fourpalms.org> Date: Thu, 07 Jun 2001 13:41:32 +0000 From: Thomas Lockhart Reply-To: lockhart@fourpalms.org Organization: Yes X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.17-21mdksmp i686) X-Accept-Language: en MIME-Version: 1.0 To: Tom Lane Cc: Stephan Szabo , Mark Stosberg , pgsql-sql@postgresql.org, pgsql-hackers@postgresql.org Subject: Re: behavior of ' = NULL' vs. MySQL vs. Standards References: <6689.991880382@sss.pgh.pa.us> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200106/181 X-Sequence-Number: 3414 > > 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. > Microsoft Access is the guilty party, IIRC. I recently tried to stir up > some interest in changing this behavior back to the standard, but > apparently there are still too many people using broken versions of > Access. Since according to the standard "column = NULL" is a near-useless construct (equivalent to "FALSE") it does not seem to pollute the grammar much to allow an M$ compatible interpretation. I was not happy having it added (much better to ask that responsive, customer-focused company to fix their language compliance) but now that it is there it seems to be an isolated and manageable feature. - Thomas