If you call commit or rollback without having a
transaction started, the next transaction is not
started correctly and the connection stays is
The problem is that fInTransaction gets a negative
value in commit/rollback and there are tests for
fInTransaction > 0, the next call to beginTransaction
increments the value but it is still negative or 0. A
suggestion is that fInTransaction should not be allowed
to be a negative value and should be checked for this
before being decremented.
Log in to post a comment.