]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- vastly improve the "safe close cursor" tests in test_reconnect
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 30 May 2014 20:24:38 +0000 (16:24 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 30 May 2014 20:24:38 +0000 (16:24 -0400)
commit814637e291953bc7e05ced3e215ef33bde5b040a
tree7b46787f2b04ae06bb2934833d827bfb04b90036
parent8daa6ccfb0be6486d36ebdd3cd709e8ebfbfa207
- vastly improve the "safe close cursor" tests in test_reconnect
- Fixed bug which would occur if a DBAPI exception
occurs when the engine first connects and does its initial checks,
and the exception is not a disconnect exception, yet the cursor
raises an error when we try to close it.  In this case the real
exception would be quashed as we tried to log the cursor close
exception via the connection pool and failed, as we were trying
to access the pool's logger in a way that is inappropriate
in this very specific scenario. fixes #3063
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/engine/strategies.py
test/engine/test_reconnect.py