boolean type cast

Поиск
Список
Период
Сортировка
От Taiki Yamaguchi
Тема boolean type cast
Дата
Msg-id 44E91BD9.6010806@sra.co.jp
обсуждение исходный текст
Ответы Re: boolean type cast  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-docs
Hi,

I found a minor glitch in the documentation for 8.1 where it talks about
boolean data type.

Here is what the documentation says:

"Tip:  Values of the boolean type cannot be cast directly to other types
(e.g., CAST (boolval AS integer) does not work)."


It is true for pre-8.1. As for 8.1, however, boolean type cast works:

=# select true::int;
 int4
------
    1
(1 row)



regards,


--
Taiki Yamaguchi



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

Предыдущее
От: "Heejin Mun"
Дата:
Сообщение: Translating manual, I got a error.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: boolean type cast