Re: nullif('','') on insert

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: nullif('','') on insert
Дата
Msg-id 20050827135629.GA1965@wolff.to
обсуждение исходный текст
Ответ на Re: nullif('','') on insert  (Chris Travers <chris@travelamericas.com>)
Список pgsql-sql
> Your problem is that NULL's are typed in PostgreSQL.
> 
> Try this:
> 
> SELECT NULL;
> SELECT NULL::BOOL;
> SELECT NULL::BOOL::TEXT;
> 
> to see what I mean.  This is an exact illustration of your problem.

Note that in 8.1 he will be able to do:
SELECT NULL::TEXT::INT::BOOL
and get the conversion he wants as long as he sticks to using 0 and 1 to
code for false and true.


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

Предыдущее
От: Havasvölgyi Ottó
Дата:
Сообщение: Re: returning inserted id
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Unwanted nested dollar-quoted constants