xo::db::sql::acs_object proc update_last_modified (public)

 xo::db::sql::acs_object[i] update_last_modified [ -dbn dbn ] \
    -object_id object_id  -modifying_user modifying_user  \
    -modifying_ip modifying_ip  [ -last_modified last_modified ]

Defined in 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
(defaults to "now()") (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 db_with_handle db_with_handle (public) xo::db::sql::acs_object proc update_last_modified xo::db::sql::acs_object proc update_last_modified xo::db::sql::acs_object proc update_last_modified->db_with_handle

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
[ hide source ] | [ make this the default ]
Show another procedure: