Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 3D6889FB3F0 for ; Tue, 30 Jan 2007 10:23:47 -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 89150-03 for ; Tue, 30 Jan 2007 10:23:34 -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 C9E879FB3F7 for ; Tue, 30 Jan 2007 10:23: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 1HBu4W-0004vF-9n for pgsql-sql@postgresql.org; Tue, 30 Jan 2007 09:34:56 -0500 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id B85564172; Tue, 30 Jan 2007 09:23:32 -0500 (EST) Date: Tue, 30 Jan 2007 09:23:32 -0500 From: Andrew Sullivan To: pgsql-sql@postgresql.org Subject: Re: Differentiate Between Zero-Length String and NULLColumn Values Message-ID: <20070130142332.GA31905@phlogiston.dyndns.org> References: <20070130131334.GD31676@phlogiston.dyndns.org> <45BF584F.A3DD.0030.0@indicator.be> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45BF584F.A3DD.0030.0@indicator.be> User-Agent: Mutt/1.5.9i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/157 X-Sequence-Number: 27309 On Tue, Jan 30, 2007 at 02:38:07PM +0100, Bart Degryse wrote: > Andrew, I think you're wrong stating that Oracle would interpret > NULL and empty string as equal. The Oracle databases I use (8, 9 > and 10) certainly make a distiction between both values. Maybe > earlier versions did so, that I don't know. Hmm. Well, I'm not an Oracle guy, so I don't really know. All I know is that we occasionally get people coming from Oracle who are surprised by this difference. What I've been _told_ is that '' and NULL are under some circumstances (maybe integers?) the same thing, whereas of course ' ' and NULL are not. But since I'm not an Oracle user, people should feel free to ignore me :) A -- Andrew Sullivan | ajs@crankycanuck.ca Everything that happens in the world happens at some place. --Jane Jacobs