]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- using contains_eager() against an alias combined with an overall query alias repair...
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 4 Oct 2008 22:39:19 +0000 (22:39 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 4 Oct 2008 22:39:19 +0000 (22:39 +0000)
commita9a4da62cfe4a7dbe6afff1f993e161e8243a6dc
tree9e98a22be2db887741208afe1176698e56f62d02
parentf4871697774a512bebf0dd11866d3b0e8eb54b91
- using contains_eager() against an alias combined with an overall query alias repaired - the
contains_eager adapter wraps the query adapter, not vice versa.  Test coverage added.
- contains_eager() will now add columns into the "primary" column collection within Query._compile_context(), instead
of the "secondary" collection.  This allows those columns to get wrapped within the subquery generated
by limit/offset in conjunction with an ORM-generated eager join.
Eager strategy also picks up on context.adapter in this case to deliver the columns during result load.
contains_eager() is now compatible with the subquery generated by a regular eager load
with limit/offset. [ticket:1180]
CHANGES
lib/sqlalchemy/orm/strategies.py
test/orm/query.py