Skip site navigation (1) Skip section navigation (2)

boolean type cast

From: Taiki Yamaguchi <yamaguti(at)sra(dot)co(dot)jp>
To: pgsql-docs(at)postgresql(dot)org
Subject: boolean type cast
Date: 2006-08-21 02:35:05
Message-ID: 44E91BD9.6010806@sra.co.jp (view raw or flat)
Thread:
Lists: 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



Responses

pgsql-docs by date

Next:From: Tom LaneDate: 2006-08-21 03:30:00
Subject: Re: boolean type cast
Previous:From: Heejin MunDate: 2006-08-20 15:12:57
Subject: Translating manual, I got a error.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group