Commit e9234dd5 authored by Penny Leach's avatar Penny Leach
Browse files

transactioned install_from_xmlfile

parent d385e30d
......@@ -548,7 +548,9 @@ function install_from_xmldb_file($file) {
return true; //Empty array = nothing to do = no error
}
$status = $status && $db->StartTrans();
// @todo investigate whether the transaction should be started and committed
// by the caller so that updating version # in db can be same transaction
$status && $db->StartTrans();
$status = $status && execute_sql_arr($sqlarr);
if ($db->HasFailedTrans()) {
$status = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment