Which is the prefered way to port this non-SQL92 compliant "db_dml"
within a transaction? (The QD didn't manage to extract the sql from
this one).
...
set sql "
update mp3_mp3s
set deleted_p = 'f'
"
foreach i_key [array names info_pairs] {
append sql ",
$i_key = $info_pairs($i_key)"
}
append sql "
where mp3_id = :mp3_id
"
set sql2 "
update acs_objects
set creation_user = :creation_user,
creation_ip = :creation_ip,
creation_date = sysdate,
context_id = :package_id
where object_id = :mp3_id
"
...
...
db_transaction {
db_dml undelete_mp3 $sql
db_dml fix_creation $sql2
}
...
Thanks,
Request notifications