]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- continue with [ticket:2907] and further clean up how we set up
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 13 Jan 2014 08:22:11 +0000 (03:22 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 13 Jan 2014 08:22:11 +0000 (03:22 -0500)
commitbebf30e34d669a5ede54e512e55ee5186fe015f6
treeaefbf3d58e23997376e0a0990d793a0501f914ff
parent578df5b86b35db97c56e38161ab9dc917269a3b0
- continue with [ticket:2907] and further clean up how we set up
_reset_agent, so that it's local to the various begin_impl(),
rollback_impl(), etc.  this allows setting/resetting of the flag
to be symmetric.
- don't set _reset_agent if it's not None, don't unset it if it isn't
our own transaction.
- make sure we clean it out in close().
- basically, we're dealing here with pools using "threadlocal" that have a
counter, other various mismatches that the tests bring up
- test for recover() now has to invalidate() the previous connection,
because closing it actually rolls it back (e.g. this test was relying
on the broken behavior).
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/testing/engines.py
test/engine/test_transaction.py