]> 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:25:23 +0000 (16:25 -0400)
commit758dc17f4fd057a96f0a9d8f90e05bbd9537fc67
treecb912443b6b4ef7232fd3d89a3fac571d83df7f4
parent1f88b16a0fc0e7a32a3e460bc2ac1f802b4884c4
- 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