Re: Bug #638: Buggy select statment with numeric

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Bug #638: Buggy select statment with numeric
Дата
Msg-id 20020422072554.K81937-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Bug #638: Buggy select statment with numeric  (pgsql-bugs@postgresql.org)
Список pgsql-bugs
On Mon, 22 Apr 2002 pgsql-bugs@postgresql.org wrote:

> Florian Steffen (mailing-list@urbanet.ch) reports a bug with a severity of 3
> The lower the number the more severe it is.
>
> Short Description
> Buggy select statment with numeric
>
> Long Description
> A select statement with a where clause on a numeric column tested
> for equality against null always return empty result. With ISNULL
> everything is fine, but not with the = operator.

This is correct behavior.  NULL=NULL is unknown not true.  Older versions
had a hack to make an explicit =NULL the same as IS NULL for certain
clients that emitted such statements when they meant IS NULL.  This is now
off by default but can be turned on using the set variable
TRANSFORM_NULL_EQUALS.

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

Предыдущее
От: Gerhard Häring
Дата:
Сообщение: Escaping of special characters in ARRAYs is broken
Следующее
От: Tom Lane
Дата:
Сообщение: Re: 7.2.1: pg_dump of UNIONed VIEWs broken