浏览代码

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 年之前
父节点
当前提交
ce72e3dab4
共有 1 个文件被更改,包括 1 次插入2 次删除
  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 
 	// 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 = MetaModel::NewObject("CMDBChange");
 	$oChange->Set("date", time());
 	$oChange->Set("date", time());