]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Improved query.join() such that the "left" side
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 12 Oct 2011 19:15:28 +0000 (15:15 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 12 Oct 2011 19:15:28 +0000 (15:15 -0400)
commitdf02cc0854068a93aa3a49a312a91780de236f5e
treeacba38b5b0d3614b30471193259e2f3428d7cd29
parentf07ffb4739734599e0112bbf7c379e80687f8899
- Improved query.join() such that the "left" side
can more flexibly be a non-ORM selectable,
such as a subquery.   A selectable placed
in select_from() will now be used as the left
side, favored over implicit usage
of a mapped entity.
If the join still fails based on lack of
foreign keys, the error message includes
this detail.  Thanks to brianrhude
on IRC for the test case.  [ticket:2298]
CHANGES
lib/sqlalchemy/orm/query.py
test/orm/test_froms.py
test/orm/test_joins.py