Explorar o código

* Rollback in try..except

git-svn-id: trunk@28455 -
michael %!s(int64=11) %!d(string=hai) anos
pai
achega
81ab999a89
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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;