xo::db::DB-postgresql instproc 0or1row

 <instance of xo::db::DB-postgresql[i]> 0or1row

Defined in

Testcases:
test_xo_db_object, xotcl-core, test_cr_items, xowiki_test_cases
Source code:
if {$sql eq ""} {set sql [:get_sql $qn]}
set prepOpt [expr {[info exists prepare] ? [list -prepare $prepare] : ""}]
set answers [uplevel [list [self] exec_0or1row -dbn $dbn {*}$prepOpt -bind $bind $sql]]
if {$answers ne ""} {
  foreach {att val} [ns_set array $answers] { uplevel [list set $att $val] }
  ns_set free $answers
  return 1
}
return 0
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: