diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-08-21 16:24:02 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-08-21 16:24:02 +0000 |
commit | 574878f11093959efb1709ce16db9c4daea9403f (patch) | |
tree | d7da7efff48f373c1db2e12dc91a0da208f83d3d | |
parent | 331428205bd435215d60c7e94fa6fbe6323ff7b3 (diff) | |
download | postgresql-574878f11093959efb1709ce16db9c4daea9403f.tar.gz postgresql-574878f11093959efb1709ce16db9c4daea9403f.zip |
Remove obsolete tip about casting bool to int, per Taiki Yamaguchi.
-rw-r--r-- | doc/src/sgml/datatype.sgml | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml index ab9bb4ce2df..8e353aaf702 100644 --- a/doc/src/sgml/datatype.sgml +++ b/doc/src/sgml/datatype.sgml @@ -1,5 +1,5 @@ <!-- -$PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.163.2.2 2006/02/09 03:40:30 tgl Exp $ +$PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.163.2.3 2006/08/21 16:24:02 tgl Exp $ --> <chapter id="datatype"> @@ -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> |