]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Fixed critical issue whereby the pool "checkout" event handler
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 22 Jul 2015 21:59:34 +0000 (17:59 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 22 Jul 2015 22:08:37 +0000 (18:08 -0400)
commit0aee8eb0015b2fa2dac0d2ba9d781fd2663bf042
treef33df35c65bd955cefb104253dbded058db32f50
parente71cf56a835842cd7d7038d6527888cc1297005f
- Fixed critical issue whereby the pool "checkout" event handler
may be called against a stale connection without the "connect"
event handler having been called, in the case where the pool
attempted to reconnect after being invalidated and failed; the stale
connection would remain present and would be used on a subsequent
attempt.  This issue has a greater impact in the 1.0 series subsequent
to 1.0.2, as it also delivers a blanked-out ``.info`` dictionary to
the event handler; prior to 1.0.2 the ``.info`` dictionary is still
the previous one.
fixes #3497

(cherry picked from commit 4096ad0f0980f6940be57aaee85791df8f975cd7)
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/__init__.py
lib/sqlalchemy/pool.py
lib/sqlalchemy/testing/mock.py
test/engine/test_pool.py