xo::db::CrItem instproc update_attribute_from_slot
<instance of xo::db::CrItem> update_attribute_from_slot
Defined in
- Testcases:
-
slot_interactions, xowiki
Source code:
set :[$slot name] $value
if {![info exists revision_id]} {
set revision_id ${:revision_id}
}
set domain [$slot domain]
::xo::dc dml update_attribute_from_slot [subst {
update [$domain table_name]
set [$slot column_name] = :value
where [$domain id_column] = :revision_id
}]
::xo::dc dml update_attribute_from_slot_last_modified {
update acs_objects set last_modified = CURRENT_TIMESTAMP
where object_id = :revision_id
}
XQL Not present:Generic, PostgreSQL, Oracle
[
hide source ]
| [
make this the default ]