]> 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:58:59 +0000 (11:58 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 9 Apr 2013 15:58:59 +0000 (11:58 -0400)
commit1ad1cd2b4ba4247b33d930d9720b3470816de447
treed3ed127418ff3fa144f8133f3fe8536ff7b4102e
parent76b3af304f7f5283cd3215da398e14a254a6c4bc
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_07.rst
lib/sqlalchemy/orm/strategies.py
test/orm/test_subquery_relations.py