In this example (autocommit is false)
Code: Select all
for i:=0 to 20 do
begin
ibcquery.sql.text:='select * from MyTable where nom=:nom';
ibcquery.fieldbyname('nom').asstring=inttostr(i);
ibcquery.open;
something...
end;
ibcquery.transaction.rollback;
I ask this question because i am not sure that when i call the .rollback i close all the transactions that have been opened in the for loop or if i have to call the .rollback after the "something"
Thanks for explanations
Regards