XML data loader: fixed issue with transations

SVN:trunk[992]
This commit is contained in:
Romain Quetiez
2010-11-29 14:42:42 +00:00
parent 2b69c5210f
commit 653229b1bd

View File

@@ -109,8 +109,7 @@ try
// The XMLDataLoader constructor has initialized the DB, let's start a transaction
CMDBSource::Query('SET AUTOCOMMIT=0');
CMDBSource::Query('BEGIN WORK');
CMDBSource::Query('START TRANSACTION');
$oChange = MetaModel::NewObject("CMDBChange");
$oChange->Set("date", time());