db_boolean (public)

 db_boolean bool

Defined in packages/acs-tcl/tcl/01-database-procs.tcl

Converts a Tcl boolean (1/0) into a SQL boolean (t/f)

Parameters:
bool (required)
Returns:
t or f

Testcases:
db_boolean
Source code:
    if { $bool } {
        return "t"
    } else {
        return "f"
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: