From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-sql@postgresql.org
Cc: D'Arcy J.M. Cain <darcy@druid.net>
Cc: Andrew Sullivan <ajs@crankycanuck.ca>
Subject: Re: Differentiate Between Zero-Length String and NULLColumn Values
Date: Tue, 30 Jan 2007 19:59:36 +0100
Message-ID: <200701301959.37775.peter_e@gmx.net> (raw)
In-Reply-To: <20070130113834.fa8d09e0.darcy@druid.net>
References: <20070130131334.GD31676@phlogiston.dyndns.org>
<20070130142332.GA31905@phlogiston.dyndns.org>
<20070130113834.fa8d09e0.darcy@druid.net>
D'Arcy J.M. Cain wrote:
> SELECT * FROM table WHERE column IS NULL;
> SELECT * FROM table WHERE column = NULL;
>
> The latter violates the SQL spec and is not allowed by PostgreSQL
> without setting a special flag.
It doesn't violate any spec and it's certainly allowed by PostgreSQL
without any flags. It's just that the result is not what some people
expect.
--
Peter Eisentraut
http://developer.postgresql.org/~petere/
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: peter_e@gmx.net, darcy@druid.net, ajs@crankycanuck.ca
Subject: Re: Differentiate Between Zero-Length String and NULLColumn Values
In-Reply-To: <200701301959.37775.peter_e@gmx.net>
* 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