pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Stark <gsstark@mit.edu>
To: Stephan Szabo <sszabo@megazone.bigpanda.com>
Cc: Stefan Weiss <spaceman@foo.at>
Cc: pgsql-sql@postgresql.org
Subject: Re: FW: "=" operator vs. "IS"
Date: 29 Jun 2004 13:33:23 -0400
Message-ID: <873c4ez2u4.fsf@stark.xeocode.com> (raw)
In-Reply-To: <20040628161747.C38283@megazone.bigpanda.com>
References: <7A4ADADFC8AFF0478D47F63BEDD57CE33A320C@gpmail.gphq.genpathpharma.com>
	<200406290102.24885.spaceman@foo.at>
	<20040628161747.C38283@megazone.bigpanda.com>


Stephan Szabo <sszabo@megazone.bigpanda.com> writes:

> IS TRUE and IS FALSE have a different effect from =true and =false when
> the left hand side is NULL. The former will return false, the latter will
> return NULL.

No, actually they both return false.

(But thanks, I didn't even realize they were special this way)

-- 
greg




view thread (15+ messages)  latest in thread

Message-ID: <873c4ez2u4.fsf@stark.xeocode.com>
Permalink:  ../873c4ez2u4.fsf@stark.xeocode.com/
Also on:    postgresql.org/message-id/873c4ez2u4.fsf@stark.xeocode.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: gsstark@mit.edu, sszabo@megazone.bigpanda.com, spaceman@foo.at
  Subject: Re: FW: "=" operator vs. "IS"
  In-Reply-To: <873c4ez2u4.fsf@stark.xeocode.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