Control transactions manually
Posted: Mon 27 Jun 2016 10:48
Hi
I would like to control transactions manually (strictly);
But I have just realized that it is not really true.
also works because at "SQL.PrepareSQL(True)" transaction is automatically opens.
Is it possible to avoid that and that "SQL.PrepareSQL(True)" instruction create an error if the transaction is not explicitly opens ?
regards
olivier
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