I would like to control transactions manually (strictly);
Code: Select all
IF NOT transaction.Active then
transaction.startTransaction;
SQL.PrepareSQL(True);
.....
IF transaction.Active then
transaction.Commit;
Code: Select all
//IF NOT transaction.Active then
// transaction.startTransaction;
SQL.PrepareSQL(True);
.....
IF transaction.Active then
transaction.Commit;
Is it possible to avoid that and that "SQL.PrepareSQL(True)" instruction create an error if the transaction is not explicitly opens ?
regards
olivier