UniDac 5.0.1 + Firebird Transaction problem
Posted: Sun 28 Apr 2013 20:32
Hello,
I have installed newer version of UniDac 5.0.1 into XE4 and I'm locked because in the new version I have a problem with the transaction.
When I begin a transaction in Firebird an exception raises:
First chance exception at $7547C41F. Exception class Exception with message 'Can't perform operation on active transaction'.
If I use this code with XE3 + Firebird 2.52 x64 + UniDac 4.6.12 it works correctly.
If I use this code with XE3/4 + SQLServer 2008 + UniDac 5.0.1 it works correctly.
Best regards
Alessandro Savoiardo
I have installed newer version of UniDac 5.0.1 into XE4 and I'm locked because in the new version I have a problem with the transaction.
When I begin a transaction in Firebird an exception raises:
First chance exception at $7547C41F. Exception class Exception with message 'Can't perform operation on active transaction'.
If I use this code with XE3 + Firebird 2.52 x64 + UniDac 4.6.12 it works correctly.
If I use this code with XE3/4 + SQLServer 2008 + UniDac 5.0.1 it works correctly.
Code: Select all
procedure TForm66.TestTransaction(AU: TUniConnection; const ATableName: string);
var
q: TUniQuery;
begin
q := TUniQuery.Create(nil);
try
AU.Open;
q.Connection := AU;
q.SQL.Text := 'select * from ' + ATableName;
q.Open;
AU.StartTransaction; // <--- Exception XE4 + UniDac 5 + Firebird 2.52
try
//
// Code in transaction
//
AU.Commit;
except
on e: Exception do
begin
AU.Rollback;
end;
end;
finally
q.Free;
end;
end;Alessandro Savoiardo