Re: When is a record NULL?

Поиск
Список
Период
Сортировка
От David E. Wheeler
Тема Re: When is a record NULL?
Дата
Msg-id C2F66615-CC76-4BD5-A956-6BE7A5E4A5F6@kineticode.com
обсуждение исходный текст
Ответ на Re: When is a record NULL?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: When is a record NULL?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Jul 23, 2009, at 4:08 PM, Tom Lane wrote:

> This is per SQL standard.  IS NULL is true if *all* the record's
> fields are null; IS NOT NULL is true if *none* of them are.
>
> Yeah, it's a bit dubious, but that's what they said.

And yet they're DISTINCT FROM each other if either or both contain  
NULLs and some other values? It seems to me that, to be consistent, it  
should be:
    select ROW(1, NULL) IS DISTINCT FROM ROW(2, NULL);    ?column?    ----------    f

No?

Best,

David


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: When is a record NULL?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: When is a record NULL?