Re: [HACKERS] case bug?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] case bug?
Дата
Msg-id 20727.937683437@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] case bug?  (Keith Parks <emkxp01@mtcc.demon.co.uk>)
Ответы Re: [HACKERS] case bug?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Keith Parks <emkxp01@mtcc.demon.co.uk> writes:
> Then I tried inserting a NULL into the table, which the
> case statement then treated as 0 and not null.

This is a bug: the test expressions i < 0 etc are actually returning
NULL, but ExecEvalCase is failing to check for a NULL condition result.
It should treat a NULL as false, I expect, just as WHERE does.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Notice: heap_open/close changes committed
Следующее
От: Tom Lane
Дата:
Сообщение: Why do we need pg_vlock?