Re: BUG #3937: timestamp null value comparison in subquery using IN/NOT IN

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #3937: timestamp null value comparison in subquery using IN/NOT IN
Дата
Msg-id 19919.1202340539@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #3937: timestamp null value comparison in subquery using IN/NOT IN  ("Jan Mate" <mate@yeea.eu>)
Список pgsql-bugs
"Jan Mate" <mate@yeea.eu> writes:
> Comparison between null and timestamp null value is not correct.

No, it's your expectations that are not correct.  Null is not "equal to"
null --- in fact both the queries you show will evaluate the WHERE
clause as null (unknown).

> Is there any other way to compare the subquery result (using IN or NOT IN)
> with null value?

Don't try to use null as a normal data value.  Sooner or later you'll
always regret it.

            regards, tom lane

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

Предыдущее
От: "Jan Mate"
Дата:
Сообщение: BUG #3937: timestamp null value comparison in subquery using IN/NOT IN
Следующее
От: ""
Дата:
Сообщение: BUG #3938: Row-wise comparison fails