X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id B5C56D1B47D for ; Tue, 20 Jan 2004 15:54:09 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 54458-05 for ; Tue, 20 Jan 2004 11:53:42 -0400 (AST) Received: from web20807.mail.yahoo.com (web20807.mail.yahoo.com [216.136.226.196]) by svr1.postgresql.org (Postfix) with SMTP id 45FF7D1CCDA for ; Tue, 20 Jan 2004 11:53:37 -0400 (AST) Message-ID: <20040120155341.70533.qmail@web20807.mail.yahoo.com> Received: from [208.13.35.65] by web20807.mail.yahoo.com via HTTP; Tue, 20 Jan 2004 07:53:41 PST Date: Tue, 20 Jan 2004 07:53:41 -0800 (PST) From: Jeff Eckermann Subject: Re: comparing nulls To: Kenneth Gonsalves Cc: pgsql-sql@postgresql.org In-Reply-To: <400D4933.3030007@incentre.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/185 X-Sequence-Number: 16578 --- Guy Fraser wrote: > Kenneth Gonsalves wrote: > > >On Tuesday 20 January 2004 19:26, Chris Bowlby > wrote: > > > > > >>Hi Ken, > >> > >> Under 7.3.x this option was removed, you need to > test via: > >> > >> SELECT * from table where field IS NULL; > >> > >> > >thanx - works in both 7.1 and 7.3 - why do these > guys keep fooling around > >with these thangs? > > > > > Standards compliance :-) You can get the old behaviour by setting "transform_null_equals" to true in postgresql.conf. I believe that this was originally added to add compatibility with MS Access. But Access no longer requires this, and the developers were not interested in maintaining a non-spec-compliant behaviour. But the postgresql.conf setting was retained for those who have code that relies on that behaviour. __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus