Re: [PATCHES] insert into table (column) values (nullif('',''));

Поиск
Список
Период
Сортировка
От John Hansen
Тема Re: [PATCHES] insert into table (column) values (nullif('',''));
Дата
Msg-id 5066E5A966339E42AA04BA10BA706AE50A9392@rodrick.geeknet.com.au
обсуждение исходный текст
Список pgsql-bugs
Since column is boolean, you need a boolean result:

 insert into table (column) values (nullif(true,true));

> -----Original Message-----
> From: pgsql-patches-owner@postgresql.org
> [mailto:pgsql-patches-owner@postgresql.org] On Behalf Of Matt A.
> Sent: Monday, August 22, 2005 3:22 AM
> To: pgsql-bugs@postgresql.org; pgsql-patches@postgresql.org
> Subject: [PATCHES] insert into table (column) values (nullif('',''));
>
> 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
>
>
>
>
>
> ____________________________________________________
> Start your day with Yahoo! - make it your home page
> http://www.yahoo.com/r/hs
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
>                http://archives.postgresql.org
>
>

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

Предыдущее
От: Steve Wormley
Дата:
Сообщение: Re: BUG #1851: Performance reduction from 8.0.3
Следующее
От: "fischer"
Дата:
Сообщение: BUG #1852: compilation failed