Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 206409FB433 for ; Tue, 30 Jan 2007 14:42:58 -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 61752-09 for ; Tue, 30 Jan 2007 14:42:39 -0400 (AST) X-Greylist: delayed 00:28:06.504707 by SQLgrey-1.7.4 Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id AE92A9FB43B for ; Tue, 30 Jan 2007 14:42:46 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from mail.polimetrix.com (mail.polimetrix.com [209.128.109.230]) by svr4.postgresql.org (Postfix) with ESMTP id 6C89B5AF99E for ; Tue, 30 Jan 2007 18:14:39 +0000 (GMT) Received: from [10.1.1.201] ([10.1.1.201]) by mail.polimetrix.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 30 Jan 2007 10:14:27 -0800 Message-ID: <45BF8B02.1050607@polimetrix.com> Date: Tue, 30 Jan 2007 10:14:26 -0800 From: Geoff Tolley User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.5) Gecko/20060805 CentOS/1.0.3-0.el4.1.centos4 SeaMonkey/1.0.3 MIME-Version: 1.0 To: Andrew Sullivan Cc: pgsql-sql@postgresql.org Subject: Re: Differentiate Between Zero-Length String and NULLColumn Values References: <20070130131334.GD31676@phlogiston.dyndns.org> <45BF584F.A3DD.0030.0@indicator.be> <20070130142332.GA31905@phlogiston.dyndns.org> <20070130113834.fa8d09e0.darcy@druid.net> <20070130165503.GC32170@phlogiston.dyndns.org> In-Reply-To: <20070130165503.GC32170@phlogiston.dyndns.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 30 Jan 2007 18:14:27.0123 (UTC) FILETIME=[7A528830:01C7449A] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.385 tagged_above=0 required=5 tests=BAYES_50, SPF_SOFTFAIL X-Spam-Level: * X-Archive-Number: 200701/165 X-Sequence-Number: 27317 Andrew Sullivan wrote: > AFAIK they don't accept the latter any more than we do. But again, > I'm an Oracle ignoramous. I _do_ know that people of my acquaintance > who have historically only developed against Oracle have given me > queries with things like > > value = '' > > in it, and been surprised. Or at least, I think it's like that. I > do recall hearing a lot about how stupid Postgres was because it > didn't like something that worked "perfectly well" on Oracle, which I > was assured was the most SQL-compliant system on the planet. > Happily, I no longer work with any of those people :) At my last job I used Oracle 8i and 9i (standard editions), and I very definitely remember the pain of it interpreting the empty string as a NULL (especially relevant when input needed trimming). - Geoff