xo::db::sql::etp proc create_new_revision (public)
xo::db::sql::etp create_new_revision [ -dbn dbn ] \ -package_id package_id -name name -user_id user_id \ -revision_id revision_id
Defined in /var/www/openacs.org/packages/xotcl-core/tcl/05-db-procs.tcl
Automatically generated method
- Switches:
- -dbn (optional)
- -package_id (required)
- -name (required)
- -user_id (required)
- -revision_id (required)
- Testcases:
- No testcase defined.
Source code: #function_args: {PACKAGE_ID {}} {NAME {}} {USER_ID {}} {REVISION_ID {}} foreach var [list PACKAGE_ID NAME USER_ID REVISION_ID] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select etp__create_new_revision($_PACKAGE_ID, $_NAME, $_USER_ID, $_REVISION_ID) " 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