Check explicitly for valid input strings for both TRUE and FALSE.

Thomas G. Lockhart <lockhart@fourpalms.org>

Commit: 3eb1bc67b1ef4efe7e9f53549b33158c1e3e94a8
Author: Thomas G. Lockhart <lockhart@fourpalms.org>
Date: 1997-10-25T05:09:58Z
Releases: 7.1.1
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.

Files

PathChange+/−
src/backend/utils/adt/bool.c modified +19 −12