]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Improvements to Connection auto-invalidation
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 11 Apr 2013 23:10:02 +0000 (19:10 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 11 Apr 2013 23:10:02 +0000 (19:10 -0400)
commitee7bb9c1744b4b09263ef32032afd38f694df136
tree5f381ca1c3869c130e4f2a86092ca07b99a0ebbf
parentf35987d31a009a6f181e2d4060e2f6274f02cbe7
Improvements to Connection auto-invalidation
handling.  If a non-disconnect error occurs,
but leads to a delayed disconnect error within error
handling (happens with MySQL), the disconnect condition
is detected.  The Connection can now also be closed
when in an invalid state, meaning it will raise "closed"
on next usage, and additionally the "close with result"
feature will work even if the autorollback in an error
handling routine fails and regardless of whether the
condition is a disconnect or not.
[ticket:2695]
doc/build/changelog/changelog_08.rst
lib/sqlalchemy/engine/base.py
test/engine/test_reconnect.py