Subject | Nested transactions (FB + IBO) |
---|---|
Author | Luis Fernando - HW Sistemas |
Post date | 2007-05-08T19:52:13Z |
Hi, all
Is it possible to nest transactions with the same IB_Transaction component?
Do I have to place different IB_Transaction components for each
transaction I need?
Like:
------
ibTrans01.StartTransaction;
...
...
ibTrans01.StartTransaction; --> An error occurs: "Transaction already
in progress"
...
...
if OK then
ibTrans01.Commit
else
ibTrans01.Rollback;
...
...
if OK then
ibTrans01.Commit
else
ibTrans01.Rollback;
------
Do I have to use a new component (ibTrans02) in the nested code?
Thanks in advance,
Luis Rocha
Is it possible to nest transactions with the same IB_Transaction component?
Do I have to place different IB_Transaction components for each
transaction I need?
Like:
------
ibTrans01.StartTransaction;
...
...
ibTrans01.StartTransaction; --> An error occurs: "Transaction already
in progress"
...
...
if OK then
ibTrans01.Commit
else
ibTrans01.Rollback;
...
...
if OK then
ibTrans01.Commit
else
ibTrans01.Rollback;
------
Do I have to use a new component (ibTrans02) in the nested code?
Thanks in advance,
Luis Rocha