]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Dont set _set_select_from() for alias object
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 19 Jan 2017 16:41:09 +0000 (11:41 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 19 Jan 2017 18:49:08 +0000 (13:49 -0500)
commit4ae02f46e944ac11af5ad77e5ff5f06963b63b3d
treee762549dd4a97cfb91d943440e78cd320429e757
parent17b85b34454e8fef5400f910ca1eaa3462e9b3c6
Dont set _set_select_from() for alias object

Fixed bug first introduced in 0.9.7 as a result of :ticket:`3106`
which would cause an incorrect query in some forms of multi-level
subqueryload against aliased entities, with an unnecessary extra
FROM entity in the innermost subquery.

Fixes: #3893
Change-Id: Ic4003c2c1c0206bd22a098fd497a7375c2758305
doc/build/changelog/changelog_11.rst
lib/sqlalchemy/orm/strategies.py
test/orm/test_subquery_relations.py