xo::db::sql::util proc multiple_nextval (public)
xo::db::sql::util multiple_nextval [ -dbn dbn ] \ -v_sequence_name v_sequence_name -v_count v_count
Defined in /var/www/openacs.org/packages/xotcl-core/tcl/05-db-procs.tcl
Automatically generated method
- Switches:
- -dbn (optional)
- -v_sequence_name (required)
- -v_count (required)
- Testcases:
- No testcase defined.
Source code: #function_args: {V_SEQUENCE_NAME {}} {V_COUNT {}} foreach var [list V_SEQUENCE_NAME V_COUNT] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select util__multiple_nextval($_V_SEQUENCE_NAME, $_V_COUNT) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }XQL Not present: Generic, PostgreSQL, Oracle