]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- contains_eager() now works with the automatically
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 16 Sep 2009 19:48:22 +0000 (19:48 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 16 Sep 2009 19:48:22 +0000 (19:48 +0000)
commit998183be6bb4575b1088b495b9078a6f3f91293f
tree94fcff1ff16509639a1d81e66541ccdccbbd0350
parent89a8e000ef02840961a8898982c43da369a553c3
- contains_eager() now works with the automatically
generated subquery that results when you say
"query(Parent).join(Parent.somejoinedsubclass)", i.e.
when Parent joins to a joined-table-inheritance subclass.
Previously contains_eager() would erroneously add the
subclass table to the query separately producing a
cartesian product.  An example is in the ticket
description.  [ticket:1543]
CHANGES
lib/sqlalchemy/orm/strategies.py
test/orm/inheritance/test_basic.py
test/orm/inheritance/test_polymorph2.py
test/orm/inheritance/test_query.py