浏览代码

* Rollback in try..except

git-svn-id: trunk@28455 -
michael 11 年之前
父节点
当前提交
81ab999a89
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      tests/utils/dbtests.pp

+ 4 - 1
tests/utils/dbtests.pp

@@ -141,7 +141,10 @@ begin
     On E : exception do
       begin
       FreeAndNil(Res);
-      Connection.Transaction.RollBack;
+      Try
+        Connection.Transaction.RollBack;
+      except
+      end;
       if not Silent then
         Verbose(V_WARNING,'Query : '+Qry+'Failed : '+E.Message);
       end;