]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Ensure alias traversal block works when adapt_from_selectables present
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 14 Jul 2021 14:29:50 +0000 (10:29 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 14 Jul 2021 17:28:25 +0000 (13:28 -0400)
commit79a3dafb1425488ba29d309cc32e0e24004be256
tree19edb827f4d3bbed2a686c46cf24adee0db232fd
parentac5ccb7e8560832beb8ec5fdeaab90816cb05973
Ensure alias traversal block works when adapt_from_selectables present

Fixed regression which appeared in version 1.4.3 due to :ticket:`6060`
where rules that limit ORM adaptation of derived selectables interfered
with other ORM-adaptation based cases, in this case when applying
adaptations for a :func:`_orm.with_polymorphic` against a mapping which
uses a :func:`_orm.column_property` which in turn makes use of a scalar
select that includes a :func:`_orm.aliased` object of the mapped table.

Fixes: #6762
Change-Id: Ice3dc34b97d12b59f044bdc0c5faaefcc4015227
doc/build/changelog/unreleased_14/6762.rst [new file with mode: 0644]
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/util.py
test/orm/inheritance/test_assorted_poly.py
test/sql/test_external_traversal.py