I have 2 distinct projects in Delphi 2007 and unidac 5.0.2 connected to a firebird database.
Whit this code:
Code: Select all
with uniquery1 do
begin
close;
sql.clear;
sql.add('select * from table');
open;
edit;
insert;
fieldbyname('afield').asinteger:=1;
try
begin
connection.starttransaction;
post;
connection.commit;
end;
excpet on e:exception do
if(connection.intransaction) then
connection.rollback
end
I have checked my code but I haven't executed any transaction: this code is the only in my Unit.
Any suggestions?
Thanks, Flavio