Re: When is a record NULL?

Поиск
Список
Период
Сортировка
От Joshua Tolley
Тема Re: When is a record NULL?
Дата
Msg-id 20090724133646.GB6606@eddie
обсуждение исходный текст
Ответ на Re: When is a record NULL?  ("David E. Wheeler" <david@kineticode.com>)
Ответы Re: When is a record NULL?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Thu, Jul 23, 2009 at 06:46:25PM -0700, David E. Wheeler wrote:
> Yes, but given that the standard says that `ROW(1, NULL)` is NULL, then I
> would expect it to be NOT DISTINCT from `ROW(2, NULL)`.

Wait, didn't we decide upthread that the standard said ROW(1, NULL) isn't
NULL?

(From Tom):
> 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.

--
Joshua Tolley / eggyknap
End Point Corporation
http://www.endpoint.com

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: join regression failure on cygwin
Следующее
От: Robert Haas
Дата:
Сообщение: Re: join removal