Re: comparing rows - Mailing list pgsql-hackers

From Don Baccus
Subject Re: comparing rows
Date
Msg-id 3.0.1.32.20000803073236.014db590@mail.pacifier.com
Whole thread Raw
In response to Re: comparing rows  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
At 10:07 AM 8/3/00 -0400, Tom Lane wrote:
>Thomas Lockhart <lockhart@alumni.caltech.edu> writes:
>> btw, it appears that SQL99 (haven't checked SQL92) specifies that
>
>> test=# select (1,2,3) = (1,2,null);
>>  ?column? 
>> ----------
> 
>> (1 row)
>
>> should return FALSE, not NULL.
>
>What?  If so, they broke it pretty badly. 

Date disagrees with Thomas on this one, too.

On the other hand, select (2,2,3) = (1,2,null) would be false
because 1 <> 2, therefore the result is not unknown.



- Don Baccus, Portland OR <dhogaza@pacifier.com> Nature photos, on-line guides, Pacific Northwest Rare Bird Alert
Serviceand other goodies at http://donb.photo.net.
 


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: comparing rows
Next
From: Don Baccus
Date:
Subject: Re: comparing rows