Re: feature request ?

Поиск
Список
Период
Сортировка
От Alexander M. Pravking
Тема Re: feature request ?
Дата
Msg-id 20040624103248.GH94665@dyatel.antar.bryansk.ru
обсуждение исходный текст
Ответ на Re: feature request ?  (sad <sad@bankir.ru>)
Ответы Re: feature request ?
Список pgsql-sql
On Thu, Jun 24, 2004 at 11:04:15AM +0400, sad wrote:
> Now you treat NULLs as false.

Nope. NULL is neither true, nor false. It's "unknown", or "undefined".

fduch=# SELECT 1 WHERE NULL::boolean;?column?
----------
(0 rows)

fduch=# SELECT 1 WHERE NOT NULL::boolean;?column?
----------
(0 rows)

So if you care, you SHOULD use IS [NOT] NULL, as Michael Glaesemann
suggested. If you don't want expression to be calculated twice, use a
temporary variable.


-- 
Fduch M. Pravking


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

Предыдущее
От: sad
Дата:
Сообщение: Re: feature request ?
Следующее
От: "Iain"
Дата:
Сообщение: Re: feature request ?