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

Поиск
Список
Период
Сортировка
От Matt
Тема BUG #1839: insert into table (column) values (nullif('',''));
Дата
Msg-id 20050821171728.297D1F0DF7@svr2.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #1839: insert into table (column) values (nullif('',''));  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Re: BUG #1839: insert into table (column) values (nullif('',''));  (Michael Fuhr <mike@fuhr.org>)
Re: BUG #1839: insert into table (column) values (nullif('',''));  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
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.

Is there different function to accomplish a insert
nullif('','') test.

Thanks
Matt

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

Предыдущее
От: Bernard
Дата:
Сообщение: CSV import issue - please help
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #1838: IndexSupportInitialze