Data Exchange - Simulate mode on synchro_exec + cleanup in traces + handling of null values

SVN:trunk[1091]
This commit is contained in:
Romain Quetiez
2011-02-23 14:55:51 +00:00
parent 9e636b1ce5
commit d1879d0433
4 changed files with 98 additions and 84 deletions

View File

@@ -134,7 +134,19 @@ try
else
{
$aResults = array();
$oSynchroDataSource->Synchronize($aResults);
if ($bSimulate)
{
CMDBSource::Query('START TRANSACTION');
}
$oSynchroDataSource->Synchronize($aResults, null);
foreach ($aResults as $sMessage)
{
$oP->p("results: $sMessage");
}
if ($bSimulate)
{
CMDBSource::Query('ROLLBACK');
}
}
}
}