#15 Transaction management problem

open
nobody
None
5
2004-09-02
2004-09-02
No

If you call commit or rollback without having a
transaction started, the next transaction is not
started correctly and the connection stays is
autocommit mode.

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.

Discussion

  • Logged In: YES
    user_id=644745

    I completely with you agree. It will be corrected in the
    following version. Thanks.