pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rich Hall <rhall@micropat.com>
To: pgsql-sql@postgresql.org
Subject: Re: FW: "=" operator vs. "IS"
Date: Tue, 29 Jun 2004 10:28:17 -0400
Message-ID: <40E17C81.3090308@micropat.com> (raw)
In-Reply-To: <7A4ADADFC8AFF0478D47F63BEDD57CE33A320C@gpmail.gphq.genpathpharma.com>
References: <7A4ADADFC8AFF0478D47F63BEDD57CE33A320C@gpmail.gphq.genpathpharma.com>

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






view thread (15+ messages)  latest in thread

Message-ID: <40E17C81.3090308@micropat.com>
Permalink:  ../40E17C81.3090308@micropat.com/
Also on:    postgresql.org/message-id/40E17C81.3090308@micropat.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: rhall@micropat.com
  Subject: Re: FW: "=" operator vs. "IS"
  In-Reply-To: <40E17C81.3090308@micropat.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox