]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
have token load flatten aliases unconditionally
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 20 Jul 2023 17:06:22 +0000 (13:06 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 25 Jul 2023 14:54:16 +0000 (10:54 -0400)
commit3ac488ce702ea97369f8a3ca8b6ae6ade2550ec3
tree6f56a92e382a8a7f0ca4c2de222c492db22a6e39
parent45b45619e75cb51bf1c3549a122edf8151a5d818
have token load flatten aliases unconditionally

Fixed issue where chaining :func:`_orm.load_only` or other wildcard use of
:func:`_orm.defer` from another eager loader using a :func:`_orm.aliased`
against a joined inheritance subclass would fail to take effect for columns
local to the superclass.

Fixes: #10125
Change-Id: I15e4b8be5a6d2ba49d2354fcd1daa099d8c3498f
doc/build/changelog/unreleased_20/10125.rst [new file with mode: 0644]
lib/sqlalchemy/orm/loading.py
lib/sqlalchemy/orm/path_registry.py
lib/sqlalchemy/orm/strategy_options.py
test/orm/test_deferred.py