]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Don't call pre_ping for fresh connection
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 5 Mar 2019 20:37:00 +0000 (15:37 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 26 Feb 2020 17:04:11 +0000 (12:04 -0500)
commitf78db5e1f68d6b2fb6a7acc04036f682d9a22974
tree199611705f8944f28ef985ed2011ba0577ba671e
parente15c53716b9f59c7c666c77d1e8b8d82538036a3
Don't call pre_ping for fresh connection

The pool "pre-ping" feature has been refined to not invoke for a DBAPI
connection that was just opened in the same checkout operation.  pre ping
only applies to a DBAPI connection that's been checked into the pool
and is being checked out again.

Fixes: #4524
Change-Id: Ibe3dfb709dbdc24aa94e96513cfbea456c33b895
doc/build/changelog/unreleased_14/4524.rst [new file with mode: 0644]
lib/sqlalchemy/pool/base.py
test/engine/test_reconnect.py