Re: NULL safe equality operator

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: NULL safe equality operator
Дата
Msg-id 9363B5AF-21E9-4078-A71E-0D73F00A0388@myrealbox.com
обсуждение исходный текст
Ответ на Re: NULL safe equality operator  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Список 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 по дате отправления:

Предыдущее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: NULL safe equality operator
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: NULL safe equality operator