X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 7A62ED1B1AA for ; Tue, 29 Jun 2004 11:23:06 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 91822-04 for ; Tue, 29 Jun 2004 14:23:02 +0000 (GMT) Received: from mail02.micropat.com (mail02.micropat.com [204.17.221.133]) by svr1.postgresql.org (Postfix) with ESMTP id 87747D1B199 for ; Tue, 29 Jun 2004 11:22:57 -0300 (ADT) Received: from micropat.com ([204.17.221.91]) by mail02.micropat.com (Lotus Domino Release 6.0.3) with ESMTP id 2004062910215067-50614 ; Tue, 29 Jun 2004 10:21:50 -0400 Message-ID: <40E17C81.3090308@micropat.com> Date: Tue, 29 Jun 2004 10:28:17 -0400 From: Rich Hall User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Re: FW: "=" operator vs. "IS" References: <7A4ADADFC8AFF0478D47F63BEDD57CE33A320C@gpmail.gphq.genpathpharma.com> In-Reply-To: <7A4ADADFC8AFF0478D47F63BEDD57CE33A320C@gpmail.gphq.genpathpharma.com> X-MIMETrack: Itemize by SMTP Server on mail02/servers/mpat(Release 6.0.3|September 18, 2003) at 06/29/2004 10:21:50, Serialize by Router on mail02/servers/mpat(Release 6.0.3|September 18, 2003) at 06/29/2004 10:21:52, Serialize complete at 06/29/2004 10:21:52 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/287 X-Sequence-Number: 18232 My question is why is the form "(anything) = NULL" allowed? Since "(anything) = NULL" is always Null, this cannot be what the coder intended. This is much different when comparing two variables, where the coder may have to handle the cases where the variables are Null. Here the comparison is to a constant. Rick