OSDN Git Service

Check explicitly for valid input strings for both TRUE and FALSE.
authorThomas G. Lockhart <lockhart@fourpalms.org>
Sat, 25 Oct 1997 05:09:58 +0000 (05:09 +0000)
committerThomas G. Lockhart <lockhart@fourpalms.org>
Sat, 25 Oct 1997 05:09:58 +0000 (05:09 +0000)
commit3eb1bc67b1ef4efe7e9f53549b33158c1e3e94a8
tree233d6d641dd59b182a47d9e29985a4375da95d89
parent200bc52b8db1a5e711503bbdef237ce51425c578
Check explicitly for valid input strings for both TRUE and FALSE.
Allow true/false, yes/no, 1/0. Throw elog warning if anything else.
Allow shorter strings, so "t", "tr", "tru" and "true" match "true".
Old behavior accepted anything starting with "t" as TRUE,
 everything else as FALSE.
src/backend/utils/adt/bool.c