xo::db::DB-postgresql instproc 1row
<instance of xo::db::DB-postgresql> 1row
- Testcases:
- xotcl_core_tutorial_3, xotcl-core, test_xo_db_object, test_cr_items
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 } error "query $sql did not return an answer"XQL Not present: Generic, PostgreSQL, Oracle