From: | Andrew Sullivan <ajs(at)crankycanuck(dot)ca> |
---|---|
To: | BillR <iambill(at)williamrosmus(dot)com> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-sql(at)postgresql(dot)org, "D'Arcy J(dot)M(dot) Cain" <darcy(at)druid(dot)net>, Andrew Sullivan <ajs(at)crankycanuck(dot)ca> |
Subject: | Re: Differentiate Between Zero-Length String and NULLColumn Values |
Date: | 2007-02-01 18:53:16 |
Message-ID: | 20070201185316.GE7985@phlogiston.dyndns.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On Wed, Jan 31, 2007 at 12:18:03PM -0800, BillR wrote:
> Peter Eisentraut wrote:
> >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.
> "= NULL" violates the SQL-92 Specification.
I don't want to put words in his mouth, but I think you missed the
bit where Peter said "the result is not what some people expect".
Hint: 'somevalue = NULL' is not a violation of SQL in that you don't
get an ERROR.
A
--
Andrew Sullivan | ajs(at)crankycanuck(dot)ca
"The year's penultimate month" is not in truth a good way of saying
November.
--H.W. Fowler
From | Date | Subject | |
---|---|---|---|
Next Message | André José Guergolet | 2007-02-01 19:09:22 | Insert Data and autonumeric field |
Previous Message | Tom Lane | 2007-02-01 18:32:19 | Re: Insert Data and autonumeric field |