Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 6BC629FB213 for ; Thu, 1 Feb 2007 14:53:43 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 69729-07 for ; Thu, 1 Feb 2007 14:53:38 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from main2.mycybernet.net (main2.mycybernet.net [209.222.63.140]) by postgresql.org (Postfix) with ESMTP id BE8B99FB20C for ; Thu, 1 Feb 2007 14:53:39 -0400 (AST) Received: from 227-54-222-209.mycybernet.net ([209.222.54.227] helo=phlogiston.dydns.org) by main2.mycybernet.net with esmtp (Exim 4.62) (envelope-from ) id 1HChEt-0002Yg-SU; Thu, 01 Feb 2007 14:04:55 -0500 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id 55BC83FAF; Thu, 1 Feb 2007 13:53:16 -0500 (EST) Date: Thu, 1 Feb 2007 13:53:16 -0500 From: Andrew Sullivan To: BillR Cc: Peter Eisentraut , pgsql-sql@postgresql.org, "D'Arcy J.M. Cain" , Andrew Sullivan Subject: Re: Differentiate Between Zero-Length String and NULLColumn Values Message-ID: <20070201185316.GE7985@phlogiston.dyndns.org> References: <20070130131334.GD31676@phlogiston.dyndns.org> <20070130142332.GA31905@phlogiston.dyndns.org> <20070130113834.fa8d09e0.darcy@druid.net> <200701301959.37775.peter_e@gmx.net> <45C0F97B.4080104@williamrosmus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45C0F97B.4080104@williamrosmus.com> User-Agent: Mutt/1.5.9i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200702/5 X-Sequence-Number: 27339 On Wed, Jan 31, 2007 at 12:18:03PM -0800, BillR wrote: > Peter Eisentraut wrote: > >It doesn't violate any spec and it's certainly allowed by PostgreSQL > >without any flags. It's just that the result is not what some people > >expect. > "= NULL" violates the SQL-92 Specification. I don't want to put words in his mouth, but I think you missed the bit where Peter said "the result is not what some people expect". Hint: 'somevalue = NULL' is not a violation of SQL in that you don't get an ERROR. A -- Andrew Sullivan | ajs@crankycanuck.ca "The year's penultimate month" is not in truth a good way of saying November. --H.W. Fowler