Re: NULL safe equality operator - Mailing list pgsql-hackers

From Michael Glaesemann
Subject Re: NULL safe equality operator
Date
Msg-id 66E74F94-8B63-43B8-8093-1FCEDEF02218@myrealbox.com
Whole thread Raw
In response to Re: NULL safe equality operator  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Responses Re: NULL safe equality operator  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Re: NULL safe equality operator  (Michael Glaesemann <grzm@myrealbox.com>)
List pgsql-hackers
On Nov 25, 2005, at 16:24 , Christopher Kings-Lynne wrote:

>>     when ($1 is null and $2 is not null)
>>         or ($1 is not null and $2 is null) then 0
>
> That's the same as:
>
> when $1 is null != $2 is null then 0

Yeah, I saw your commit. Nice shortcut. Also didn't know you could  
define operators using SQL functions. Tom's suggestion of NOT (a  
DISTINCT FROM b) is really cool. Much cleaner in my opinion. I learn  
a lot from these lists :)

Michael Glaesemann
grzm myrealbox com





pgsql-hackers by date:

Previous
From: Christopher Kings-Lynne
Date:
Subject: Re: NULL safe equality operator
Next
From: Christopher Kings-Lynne
Date:
Subject: Re: NULL safe equality operator