]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
ensure with_options not switched to a list
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 10 Jan 2022 19:59:59 +0000 (14:59 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 11 Jan 2022 00:48:43 +0000 (19:48 -0500)
commitf572b00d25b0c76f088dc27c45c31b97000eb3b6
tree8efa8b30cebbf9fa3ae6a2c5fc7bfeff9dfe4797
parent2f370229d63665ffae72a9f8a37800b4d70cf6a1
ensure with_options not switched to a list

Fixed regression which appeared in 1.4.23 which could cause loader options
to be mis-handled in some cases, in particular when using joined table
inheritance in combination with the ``polymorphic_load="selectin"`` option
as well as relationship lazy loading, leading to a ``TypeError``.

Fixes: #7557
Change-Id: Id38619692f94308fd5f567a02337efef7a3a7544
(cherry picked from commit 4e9fe6e3b7a72fc3b116403ea9b27e847b5bf186)
doc/build/changelog/unreleased_14/7557.rst [new file with mode: 0644]
lib/sqlalchemy/orm/strategies.py
test/orm/inheritance/test_poly_loading.py