Hello,
I have the following code, with AutoCommit := True at TIBCQuery level. The query executes a simple INSERT INTO statement with returning one parameter due to using the RETURNING clause.
Code: Select all
IBCQuery1.Transaction.StartTransaction;
try
IBCQuery1.Execute;
ShowMessage(IBCQuery1.ParamByName('RET_T1_ID').AsString);
except
IBCQuery1.Transaction.Rollback;
end;
Is it as designed, when starting an
explicit transaction with StartTransaction, that AutoCommit of the query still applies, which means, after query execution I do see the inserted record in another application? Any other access components I have used until now will set AutoCommit to false in case of starting an
explicit transaction and turns back to AutoCommit = True, when the transaction has been committed or rolled back.
Thanks
Thomas