Re: nullif BUG???

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: nullif BUG???
Дата
Msg-id web-92561@davinci.ethosmedia.com
обсуждение исходный текст
Ответ на nullif BUG???  ("guard" <guard@ficnet.net>)
Ответы Re: nullif BUG???  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
Guard,

> > select nullif(NULL,5)
>
> +--------+
> | case   |
> +--------+
> | <Null> |
> +--------+
>

Er... what were you expecting, exactly?

Except for IS NULL (and COALESCE, which uses IS NULL) any operation
involving a NULL is also NULL.

-Josh


______AGLIO DATABASE SOLUTIONS___________________________
                                       Josh Berkus
  Complete information technology      josh@agliodbs.com
   and data management solutions       (415) 565-7293
  for law firms, small businesses        fax 621-2533
    and non-profit organizations.      San Francisco

Вложения

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

Предыдущее
От: "guard"
Дата:
Сообщение: nullif BUG???
Следующее
От: Gonzo Rock
Дата:
Сообщение: Re: D308-E9AF-4C11 : CONFIRM from pgsql-sql (subscribe)