Browse Source

* Rollback in try..except

git-svn-id: trunk@28455 -
michael 11 years ago
parent
commit
81ab999a89
1 changed files with 4 additions and 1 deletions
  1. 4 1
      tests/utils/dbtests.pp

+ 4 - 1
tests/utils/dbtests.pp

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