Discussion:
IBTransaction and transaction isolation.
(too old to reply)
Steve
2005-07-26 16:03:20 UTC
Permalink
Using C++Builder 5 and Interbase 7.1 SP 2


I am slowly moving my components from the BDE to IBX. I have a
IBDatabase component with a default IBTransaction. On individual forms
I access a IBQuery but I give it a new IBTranaction component (instead
of using the default). Does this give me tranaction isolation, or do I
already have that if I just use the single default IBTransaction?
Jeff Overcash (TeamB)
2005-07-28 18:51:33 UTC
Permalink
Post by Steve
Using C++Builder 5 and Interbase 7.1 SP 2
I am slowly moving my components from the BDE to IBX. I have a
IBDatabase component with a default IBTransaction. On individual forms
I access a IBQuery but I give it a new IBTranaction component (instead
of using the default). Does this give me tranaction isolation, or do I
already have that if I just use the single default IBTransaction?
Everything that shares a transaction all have the same transaction from a read
standpoint (iow posting a record in one query can be read by another query using
the same transaction without committing). If two queries have different
transactions they are isolated from each other and can't see changes made by the
other until the other commits.

Usually each form will have at least its own transaction so committing changes
on one form would not have the side effect of committing changes made in other
forms but not ready to be committed.
--
Jeff Overcash (TeamB)
(Please do not email me directly unless asked. Thank You)
A human being should be able to change a diaper, plan an invasion, butcher
a hog, conn a ship, design a building, write a sonnet, balance accounts, build
a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act
alone, solve equations, analyze a new problem, pitch manure, program a computer,
cook a tasty meal, fight efficiently, die gallantly. Specialization is for
insects. (RAH)
Loading...