X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 5E6B8D1C7EF for ; Fri, 1 Aug 2003 06:15:57 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 22586-04 for ; Fri, 1 Aug 2003 03:14:51 -0300 (ADT) Received: from technet4.t-n-i.dmz (technet65.tnss.com [216.160.28.65]) by svr1.postgresql.org (Postfix) with ESMTP id 000DFD1C7EB for ; Fri, 1 Aug 2003 03:15:54 -0300 (ADT) Received: from tnss.com (IDENT:maillist@technet2.t-n-i.dmz [10.254.254.2]) by technet4.t-n-i.dmz (8.11.6/8.11.6) with ESMTP id h716GQY06862 for ; Fri, 1 Aug 2003 01:16:27 -0500 Message-ID: <3F2A05C7.4C171687@tnss.com> Date: Fri, 01 Aug 2003 01:16:39 -0500 From: maillist X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.18-27.7.xsmp i686) X-Accept-Language: en MIME-Version: 1.0 Cc: "pgsql-admin@postgresql.org" Subject: Re: fyi References: <20030731225212.B37793-100000@megazone.bigpanda.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/8 X-Sequence-Number: 9731 Stephan Szabo wrote: > > On Thu, 31 Jul 2003, maillist wrote: > > > select * from apps where (not apppag = null); > > returns nothing when it should return every thing > > No. It should return nothing. apppag = null returns unknown for every > row. Use IS NULL to test if a value is null. hmmm now i'm confused when i set a value i don't use the phrase to null and '= null' has always worked in the past, and if '= null' doesn't work it should be an invalid query because i can see no other use for it, and for the most part is, to are ignored anyways. so would the correct query be select * from apps where (not apppag = is null) or select * from apps where (not apppag is null) both of these look silly, but I do use null in other fields on purpuse to represent uninitailized fields. So I definitlay am going to have to grep my code for "=*null" and check to see what needs to be done. Ijust thought it was a bug, that should not have been found, because the query had un needed checks. I need to do more testing before I allow production servers to upgrade Arno