Re: Differentiate Between Zero-Length String and NULLColumn Values - Mailing list pgsql-sql

From Peter Eisentraut
Subject Re: Differentiate Between Zero-Length String and NULLColumn Values
Date
Msg-id 200701301959.37775.peter_e@gmx.net
Whole thread Raw
In response to Re: Differentiate Between Zero-Length String and NULLColumn Values  ("D'Arcy J.M. Cain" <darcy@druid.net>)
Responses Re: Differentiate Between Zero-Length String and NULLColumn Values  (BillR <iambill@williamrosmus.com>)
List pgsql-sql
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/


pgsql-sql by date:

Previous
From: Geoff Tolley
Date:
Subject: Re: Differentiate Between Zero-Length String and NULLColumn Values
Next
From: Tomas Vondra
Date:
Subject: Re: Differentiate Between Zero-Length String and NULLColumn Values