]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fixed bug when a query of the form:
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 9 Apr 2013 15:52:21 +0000 (11:52 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 9 Apr 2013 15:52:21 +0000 (11:52 -0400)
commitdf4e59ff557b16202c4c3e47ad48667ba1e143c0
tree54c32f2a3023a6bd943a5fd1d736daafca338cc9
parent6bdd3bb93fd18a4aec54ee2a836875a922dcaab3
Fixed bug when a query of the form:
``query(SubClass).options(subqueryload(Baseclass.attrname))``,
where ``SubClass`` is a joined inh of ``BaseClass``,
would fail to apply the ``JOIN`` inside the subquery
on the attribute load, producing a cartesian product.
The populated results still tended to be correct as additional
rows are just ignored, so this issue may be present as a
performance degradation in applications that are
otherwise working correctly. [ticket:2699]
doc/build/changelog/changelog_08.rst
lib/sqlalchemy/orm/strategies.py
test/orm/inheritance/test_polymorphic_rel.py
test/orm/test_subquery_relations.py