]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Ensure ClauseAdapter treats FunctionElement as a ColumnElement
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 18 Mar 2021 23:34:32 +0000 (19:34 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 19 Mar 2021 01:47:46 +0000 (21:47 -0400)
commitc1c999c01d595b74fe178d9bdbff34fd8939a283
tree7b6c7d0395096c29b43fcbbe6c4c5f8a7138daf8
parentd0812a1abf903f6b5f1a0bfb19f8c87a665f8309
Ensure ClauseAdapter treats FunctionElement as a ColumnElement

Fixed regression where use of an unnamed SQL expression such as a SQL
function would raise a column targeting error if the query itself were
using joinedload for an entity and was also being wrapped in a subquery by
the joinedload eager loading process.

Fixes: #6086
Change-Id: I22cf4d6974685267c4f903bd7639be8271c6c1ef
doc/build/changelog/unreleased_14/6086.rst [new file with mode: 0644]
lib/sqlalchemy/orm/context.py
lib/sqlalchemy/sql/util.py
test/orm/test_eager_relations.py
test/sql/test_external_traversal.py