Browse Source

XML data loader: fixed issue with transations

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@992 a333f486-631f-4898-b8df-5754b55c2be0
romainq 14 years ago
parent
commit
ce72e3dab4
1 changed files with 1 additions and 2 deletions
  1. 1 2
      webservices/backoffice.dataloader.php

+ 1 - 2
webservices/backoffice.dataloader.php

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