Remove obsolete tip about casting bool to int, per Taiki Yamaguchi.
authorTom Lane <[email protected]>
Mon, 21 Aug 2006 16:24:02 +0000 (16:24 +0000)
committerTom Lane <[email protected]>
Mon, 21 Aug 2006 16:24:02 +0000 (16:24 +0000)
doc/src/sgml/datatype.sgml

index b629b3ee6439777d768990b5ed8958a79de665c5..5b881837a032c095f583fd67cb27708acc0342a4 100644 (file)
@@ -2296,19 +2296,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>