Re: NULL safe equality operator

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: NULL safe equality operator
Дата
Msg-id 22284.1132932221@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: NULL safe equality operator  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Список pgsql-hackers
Christopher Kings-Lynne <chriskl@familyhealth.com.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 asnull_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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: gprof SELECT COUNT(*) results
Следующее
От: Tom Lane
Дата:
Сообщение: Re: NULL safe equality operator