nsmcp::DatabaseSession method quote (public)

 <instance of nsmcp::DatabaseSession[i]> quote value

Defined in /usr/local/ns/tcl/nsmcp/lib/database.tcl

Parameters:
value (required)

Testcases:
No testcase defined.
Source code:
if {[string first \x00 $value]>=0} {
    return "CAST(X'[binary encode hex [encoding convertto utf-8 $value]]' AS TEXT)"
}
return "'[string map [list ' ''] $value]'"
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: