From: Taiki Yamaguchi <yamaguti@sra.co.jp>
To: pgsql-docs@postgresql.org
Subject: boolean type cast
Date: Mon, 21 Aug 2006 11:35:05 +0900
Message-ID: <44E91BD9.6010806@sra.co.jp> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: yamaguti@sra.co.jp
Subject: Re: boolean type cast
In-Reply-To: <44E91BD9.6010806@sra.co.jp>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox