Explorar o código

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 %!s(int64=14) %!d(string=hai) anos
pai
achega
ce72e3dab4
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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());