Re: NULL safe equality operator
- From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
- To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
- Cc: Michael Glaesemann <grzm(at)myrealbox(dot)com>, Hackers <pgsql-hackers(at)postgresql(dot)org>
- Subject: Re: NULL safe equality operator
- Date: Fri, 25 Nov 2005 10:23:41 -0500
- Message-id: <22284(dot)1132932221(at)sss(dot)pgh(dot)pa(dot)us>
Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au> writes:
>> test=# select null_safe_cmp (NULL,NULL);
>> ERROR: could not determine anyarray/anyelement type because input has
>> type "unknown"
>> Same casting problem due to anyelement, of course.
> Yes - I wonder what the trick to getting around that is?
You might be able to hack it by creating a second function defined as
null_safe_cmp(unknown,unknown)
Pretty grotty of course, and I'm not sure that it comes up in the
real world as opposed to test cases.
regards, tom lane
Home |
Main Index |
Thread Index