Re: When is a record NULL?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: When is a record NULL?
Дата
Msg-id 1764.1248459031@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: When is a record NULL?  (Jeff Davis <pgsql@j-davis.com>)
Ответы Re: When is a record NULL?  ("David E. Wheeler" <david@kineticode.com>)
Re: When is a record NULL?  (Jeff Davis <pgsql@j-davis.com>)
Список pgsql-hackers
Jeff Davis <pgsql@j-davis.com> writes:
> There's no single test, but you can see if it's an empty row with:
>   x IS NULL AND x IS DISTINCT FROM NULL
> And you can see if it's a "real" NULL by:
>   x IS NULL AND x IS NOT DISTINCT FROM NULL

Hmmm ... that suggests that we may not be handling IS DISTINCT FROM
correctly for rowtypes.  I haven't read that part of the spec, but
I would've guessed that the spec wants it to be consistent with
IS NULL.
        regards, tom lane


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

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