]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- added close() method to Transaction. closes out a transaction using rollback
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 17 Aug 2007 21:20:49 +0000 (21:20 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 17 Aug 2007 21:20:49 +0000 (21:20 +0000)
commitde1712a2116d80a6771ad5475277cc85e87179e2
tree58f7f038b9259d01b91f6df36bdaf5305472bd03
parent99b1bee20e20ddb74b1ade6b186f6f7a174968a2
- added close() method to Transaction.  closes out a transaction using rollback
  if it's the outermost transaction, otherwise just ends without affecting
  the outer transaction.

- transactional and non-transactional Session integrates better with bound
  connection; a close() will ensure that connection transactional state is
  the same as that which existed on it before being bound to the Session.
CHANGES
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/orm/session.py
test/engine/transaction.py
test/orm/session.py