Re: BUG #1839: insert into table (column) values (nullif('',''));

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: BUG #1839: insert into table (column) values (nullif('',''));
Дата
Msg-id 20050822071618.L87514@megazone.bigpanda.com
обсуждение исходный текст
Ответ на BUG #1839: insert into table (column) values (nullif('',''));  ("Matt" <survivedsushi@yahoo.com>)
Список pgsql-bugs
On Sun, 21 Aug 2005, Matt wrote:

>
> The following bug has been logged online:
>
> Bug reference:      1839
> Logged by:          Matt
> Email address:      survivedsushi@yahoo.com
> PostgreSQL version: 8.0.3
> Operating system:   linux
> Description:        insert into table (column) values (nullif('',''));
> Details:
>
> insert into table (column) values (nullif('',''));
> ERROR: column "column" is of type boolean but
> expression is of type text.
>
> inserting NULL works. nullif('','') should return NULL
> if both values are equal? It works in MSSQL.

It does return a NULL AFAICS, however it looks like it returns a NULL cast
to a textual type (since if they were different, it would return its first
argument according to the docs).

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #1838: IndexSupportInitialze
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: BUG #1839: insert into table (column) values (nullif('',''));