Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit548237f

Browse files
committed
Remove obsolete tip about casting bool to int, per Taiki Yamaguchi.
1 parent35af542 commit548237f

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

‎doc/src/sgml/datatype.sgml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.170 2006/08/2100:57:23 tgl Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.171 2006/08/2116:23:46 tgl Exp $ -->
22

33
<chapter id="datatype">
44
<title id="datatype-title">Data Types</title>
@@ -2294,19 +2294,6 @@ SELECT * FROM test1 WHERE a;
22942294
<literal>t</literal> and <literal>f</literal>.
22952295
</para>
22962296

2297-
<tip>
2298-
<para>
2299-
Values of the <type>boolean</type> type cannot be cast directly
2300-
to other types (e.g., <literal>CAST
2301-
(<replaceable>boolval</replaceable> AS integer)</literal> does
2302-
not work). This can be accomplished using the
2303-
<literal>CASE</literal> expression: <literal>CASE WHEN
2304-
<replaceable>boolval</replaceable> THEN 'value if true' ELSE
2305-
'value if false' END</literal>. See <xref
2306-
linkend="functions-conditional">.
2307-
</para>
2308-
</tip>
2309-
23102297
<para>
23112298
<type>boolean</type> uses 1 byte of storage.
23122299
</para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp