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:
Pierre Goiffon
2019-08-20 10:47:29 +02:00
committed by GitHub
parent 5dd92ab506
commit 51bbe1f79d
5 changed files with 216 additions and 18 deletions

View File

@@ -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();
?>