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 08:15:30
Message-ID: 9363B5AF-21E9-4078-A71E-0D73F00A0388@myrealbox.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On Nov 25, 2005, at 17:06 , Christopher Kings-Lynne wrote:

>> test=# select null_safe_cmp (NULL,NULL);
>> ERROR: could not determine anyarray/anyelement type because
>> input has type "unknown"
>> test=# select null_safe_cmp (NULL::integer,NULL::integer);
>> null_safe_cmp
>> ---------------
>> 1
>> (1 row)
>> Same casting problem due to anyelement, of course.
>
> Yes - I wonder what the trick to getting around that is?

Don't use NULL.

Michael Glaesemann
grzm myrealbox com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2005-11-25 08:56:39 Re: NULL safe equality operator
Previous Message Christopher Kings-Lynne 2005-11-25 08:11:40 Re: NULL safe equality operator