MobilityDB 1.1

◆ bool_in()

bool bool_in ( const char *  in_str)

Convert "t" or "f" to 1 or 0.

MobilityDB functions pg_func(...) corresponding to external PostgreSQL functions func(PG_FUNCTION_ARGS).

Check explicitly for "true/false" and TRUE/FALSE, 1/0, YES/NO, ON/OFF. Reject other values.

In the switch statement, check the most-used possibilities first.

Note
PostgreSQL function: Datum boolin(PG_FUNCTION_ARGS)