]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Ignore max_overflow when pool_size is 0
authorFederico Caselli <cfederico87@gmail.com>
Thu, 15 Sep 2022 20:42:08 +0000 (22:42 +0200)
committerFederico Caselli <cfederico87@gmail.com>
Thu, 15 Sep 2022 20:42:08 +0000 (22:42 +0200)
commit20917c591848792932dfebbe6580276a885385a5
treef10a929948d7a782c9b097b17c7158c0ea466802
parentde173b600b0d3747bcf1941e3027598c66da33ac
Ignore max_overflow when pool_size is 0

The :class:`_pool.QueuePool` now ignores ``max_overflow`` when
``pool_size=0``, properly making the pool unlimited in all cases.

Fixes: #8523
Change-Id: Ifc32eb47a281c4b3acf357352f07b9b8a73d1b6f
doc/build/changelog/unreleased_20/8523.rst [new file with mode: 0644]
lib/sqlalchemy/pool/impl.py
test/engine/test_pool.py