mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
Handle nested transactions (#90)
* starting a new transaction will send nothing in the DB (only one global transaction : merge nested transactions) * same for COMMIT or ROLLBACK if more than 1 transaction is opened * transactions are kept inside \DBObject::DBInsertNoReload, but they can be disabled using config flag db_core_transactions_enabled=false (true by default, hidden by default)
This commit is contained in:
@@ -151,7 +151,7 @@ try
|
||||
catch(Exception $e)
|
||||
{
|
||||
$oP->p("An error happened while loading the data: ".$e->getMessage());
|
||||
$oP->p("Aborting (no data written)...");
|
||||
$oP->p("Aborting (no data written)...");
|
||||
CMDBSource::Query('ROLLBACK');
|
||||
}
|
||||
|
||||
@@ -161,4 +161,3 @@ if (function_exists('memory_get_peak_usage'))
|
||||
}
|
||||
|
||||
$oP->Output();
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user