]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Pass all pool parameters in recreate()
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 14 Sep 2020 14:14:48 +0000 (10:14 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 14 Sep 2020 15:36:31 +0000 (11:36 -0400)
commit3d803a8ed3e07332dff872180680bed6175dd483
tree7f69ce4a2c4181d7956cc9f527ef73931431abba
parent056c929e15c735059b2f17f9ae5391d3ad244907
Pass all pool parameters in recreate()

The following pool parameters were not being propagated to the new pool
created when :meth:`_engine.Engine.dispose` were called: ``pre_ping``,
``use_lifo``.  Additionally the ``recycle`` and ``reset_on_return``
parameters were not propagated for the :class:`_engine.AssertionPool`
class.  These issues have been fixed.

Fixes: #5582
Change-Id: Ifdb703aa7e849652242b9ff8071c854cd1d77e71
doc/build/changelog/unreleased_13/5582.rst [new file with mode: 0644]
lib/sqlalchemy/pool/impl.py
lib/sqlalchemy/util/queue.py
test/engine/test_pool.py