database_1row_to_tcl_list db sqlWhat it does:
Returns the column values from one row in the database as a Tcl list. If there isn't exactly one row from this query, throws an error.Defined in: /web/philip/packages/acs-core/utilities-procs.tcl
Source code:
set selection [ns_db 1row $db $sql] set list_to_return [list] set size [ns_set size $selection] set counter 0 while {$counter<$size} { lappend list_to_return [ns_set value $selection $counter] incr counter } return $list_to_return