boolean type cast - Mailing list pgsql-bugs

From Taiki Yamaguchi
Subject boolean type cast
Date
Msg-id 44E913CD.6030101@sraoss.co.jp
Whole thread Raw
List pgsql-bugs
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-bugs by date:

Previous
From: ""
Date:
Subject: BUG #2585: Please provide pkg-config support
Next
From: "Sunil Kumar Basu"
Date:
Subject: BUG #2586: Connecting problem