Re: NULL safe equality operator

From: Michael Glaesemann <grzm(at)myrealbox(dot)com>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: NULL safe equality operator
Date: 2005-11-25 07:37:33
Message-ID: 66E74F94-8B63-43B8-8093-1FCEDEF02218@myrealbox.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Glaesemann 2005-11-25 07:42:05 Re: NULL safe equality operator
Previous Message Christopher Kings-Lynne 2005-11-25 07:24:02 Re: NULL safe equality operator