xo::db::sql::acs_object proc update_last_modified (public)
xo::db::sql::acs_object update_last_modified [ -dbn dbn ] \ -object_id object_id -modifying_user modifying_user \ -modifying_ip modifying_ip [ -last_modified last_modified ]
Defined in /var/www/openacs.org/packages/xotcl-core/tcl/05-db-procs.tcl
Automatically generated method
- Switches:
- -dbn (optional)
- -object_id (required)
- -modifying_user (required)
- -modifying_ip (required)
- -last_modified (optional, defaults to
"now()"
)- Testcases:
- No testcase defined.
Source code: #function_args: {OBJECT_ID {}} {MODIFYING_USER {}} {MODIFYING_IP {}} {LAST_MODIFIED now()} foreach var [list OBJECT_ID MODIFYING_USER MODIFYING_IP LAST_MODIFIED] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_object__update_last_modified($_OBJECT_ID, $_MODIFYING_USER, $_MODIFYING_IP, $_LAST_MODIFIED) " 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