From: | Jeff Davis <pgsql(at)j-davis(dot)com> |
---|---|
To: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
Cc: | Andreas Joseph Krogh <andreak(at)officenet(dot)no>, Andrew Dunstan <andrew(at)dunslane(dot)net>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: bug or feature, || -operator and NULLs |
Date: | 2006-10-18 18:36:44 |
Message-ID: | 1161196604.31645.233.camel@dogma.v10.wvs |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, 2006-10-18 at 15:57 +0200, Martijn van Oosterhout wrote:
> On Wed, Oct 18, 2006 at 03:44:05PM +0200, Andreas Joseph Krogh wrote:
> > > When in doubt, consult the standard ... Oracle's treatment of NULL is
> > > known to violate the standard, IIRC. Your measure of correctness seems
> > > to be "appears to me more logical", but ours is "complies with the
> > > standard".
> >
> > I know PG violates the standard in other places and core's favourite argument
> > for doing so is "the standard is braindead here, so we do it our way".
>
> But they're few and far between and not on things people actually
> notice much.
>
> What's being suggested simply violates common sense. Basically:
>
> if (a = b) then (a||c = b||c)
>
If a is 'x' and b is 'x' and c is NULL, the above statement doesn't hold
in PostgreSQL.
I'm not disagreeing with your overall point, I'm just missing what you
meant by the above statement. What are a, b, and c supposed to be?
Regards,
Jeff Davis
From | Date | Subject | |
---|---|---|---|
Next Message | Jim C. Nasby | 2006-10-18 18:38:23 | Re: bug or feature, || -operator and NULLs |
Previous Message | Jim C. Nasby | 2006-10-18 18:31:34 | Re: Mirror problems for download |