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

From Michael Glaesemann
Subject Re: NULL safe equality operator
Date
Msg-id 9363B5AF-21E9-4078-A71E-0D73F00A0388@myrealbox.com
Whole thread Raw
In response to Re: NULL safe equality operator  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
List 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





pgsql-hackers by date:

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