]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fixed regression when using from_statement in orm context.
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 1 Feb 2023 23:16:39 +0000 (18:16 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 3 Feb 2023 14:34:14 +0000 (09:34 -0500)
commitd995af71980b1f887f2f374580d1341d72cc3442
treeab5c754f9b25e5e0448e5aa69cc92713e88a9bbb
parentd84e6f8f3c6a346daaa021440a6804ce37f3cb56
Fixed regression when using from_statement in orm context.

Fixed regression when using :meth:`_sql.Select.from_statement` in an ORM
context, where matching of columns to SQL labels based on name alone was
disabled for ORM-statements that weren't fully textual. This would prevent
arbitrary SQL expressions with column-name labels from matching up to the
entity to be loaded, which previously would work within the 1.4
and previous series, so the previous behavior has been restored.

Fixes: #9217
Change-Id: I5f7ab9710a96a98241388883365e56d308b4daf2
doc/build/changelog/unreleased_20/9217.rst [new file with mode: 0644]
lib/sqlalchemy/orm/context.py
test/orm/test_froms.py