]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Doc: improve description of allowed spellings for Boolean input.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 13 Jun 2019 02:54:46 +0000 (22:54 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 13 Jun 2019 02:54:46 +0000 (22:54 -0400)
commit909a92e1955256f41c411961e400a145d581ed2d
tree0b2108f80692062a74f0939f9f1c425bff14528d
parent30d3df0a7b823d14c8bf43d949a122492b5d039c
Doc: improve description of allowed spellings for Boolean input.

datatype.sgml failed to explain that boolin() accepts any unique
prefix of the basic input strings.  Indeed it was actively misleading
because it called out a few minimal prefixes without mentioning that
there were more valid inputs.

I also felt that it wasn't doing anybody any favors by conflating
SQL key words, valid Boolean input, and string literals containing
valid Boolean input.  Rewrite in hopes of reducing the confusion.

Per bug #15836 from Yuming Wang, as diagnosed by David Johnston.
Back-patch to supported branches.

Discussion: https://postgr.es/m/15836-656fab055735f511@postgresql.org
doc/src/sgml/datatype.sgml