Return a boolean from its string representation.
- Parameters
-
Convert "t" or "f" to 1 or 0. Check explicitly for "true/false" and TRUE/FALSE, 1/0, YES/NO, ON/OFF and reject other values. In the switch statement, check the most-used possibilities first.
- Note
- PostgreSQL function:
boolin(PG_FUNCTION_ARGS)