aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-08-21 16:23:46 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-08-21 16:23:46 +0000
commit548237fc840134bf038433e318b3cd4c30f85912 (patch)
tree167beb6d6806efd9493584e949b5f6c6122cdfbf
parent35af5422f640e74029a167d106604da35ae64c5f (diff)
downloadpostgresql-548237fc840134bf038433e318b3cd4c30f85912.tar.gz
postgresql-548237fc840134bf038433e318b3cd4c30f85912.zip
Remove obsolete tip about casting bool to int, per Taiki Yamaguchi.
-rw-r--r--doc/src/sgml/datatype.sgml15
1 files changed, 1 insertions, 14 deletions
diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml
index c5ba6c4d973..68ff7afd039 100644
--- a/doc/src/sgml/datatype.sgml
+++ b/doc/src/sgml/datatype.sgml
@@ -1,4 +1,4 @@
-<!-- $PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.170 2006/08/21 00:57:23 tgl Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.171 2006/08/21 16:23:46 tgl Exp $ -->
<chapter id="datatype">
<title id="datatype-title">Data Types</title>
@@ -2294,19 +2294,6 @@ SELECT * FROM test1 WHERE a;
<literal>t</literal> and <literal>f</literal>.
</para>
- <tip>
- <para>
- Values of the <type>boolean</type> type cannot be cast directly
- to other types (e.g., <literal>CAST
- (<replaceable>boolval</replaceable> AS integer)</literal> does
- not work). This can be accomplished using the
- <literal>CASE</literal> expression: <literal>CASE WHEN
- <replaceable>boolval</replaceable> THEN 'value if true' ELSE
- 'value if false' END</literal>. See <xref
- linkend="functions-conditional">.
- </para>
- </tip>
-
<para>
<type>boolean</type> uses 1 byte of storage.
</para>