pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
boolean type cast
2+ messages / 2 participants
[nested] [flat]

* boolean type cast
@ 2006-08-21 02:35  Taiki Yamaguchi <yamaguti@sra.co.jp>
  0 siblings, 1 reply; 2+ messages in thread

From: Taiki Yamaguchi @ 2006-08-21 02:35 UTC (permalink / raw)
  To: 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





^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: boolean type cast
@ 2006-08-21 03:30  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Taiki Yamaguchi <yamaguti@sra.co.jp>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2006-08-21 03:30 UTC (permalink / raw)
  To: Taiki Yamaguchi <yamaguti@sra.co.jp>; +Cc: pgsql-docs

Taiki Yamaguchi <yamaguti@sra.co.jp> writes:
> I found a minor glitch in the documentation for 8.1 where it talks about
> boolean data type.

Yeah, looks like we missed updating that bit :-(

I'm tempted to just delete the whole <tip>.  Is there a reason to insert
some other text in its place?  If so, what to say?

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2006-08-21 03:30 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-08-21 02:35 boolean type cast Taiki Yamaguchi <yamaguti@sra.co.jp>
2006-08-21 03:30 ` Tom Lane <tgl@sss.pgh.pa.us>

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