1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Allow leading and trailing whitespace in the input to the boolean

type. Also, add explicit casts between boolean and text/varchar. Both
of these changes are for conformance with SQL:2003.

Update the regression tests, bump the catversion.
This commit is contained in:
Neil Conway
2007-06-01 23:40:19 +00:00
parent bd0a260928
commit f086be3d39
8 changed files with 109 additions and 21 deletions

View File

@ -1,4 +1,4 @@
<!-- $PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.202 2007/05/29 04:58:43 neilc Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.203 2007/06/01 23:40:18 neilc Exp $ -->
<chapter id="datatype">
<title id="datatype-title">Data Types</title>
@ -2403,9 +2403,9 @@ January 8 04:05:06 1999 PST
<member><literal>'no'</literal></member>
<member><literal>'0'</literal></member>
</simplelist>
Using the key words <literal>TRUE</literal> and
<literal>FALSE</literal> is preferred (and
<acronym>SQL</acronym>-compliant).
Leading and trailing whitespace is ignored. Using the key words
<literal>TRUE</literal> and <literal>FALSE</literal> is preferred
(and <acronym>SQL</acronym>-compliant).
</para>
<example id="datatype-boolean-example">