]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Query.from_self() as well as query.subquery() both disable
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 15 Jan 2009 17:08:56 +0000 (17:08 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 15 Jan 2009 17:08:56 +0000 (17:08 +0000)
commit454f1d7f583a6530c28b2ca86235695d6952d292
tree2a7ad604378304403b4e0253030f0ca1cfc688c3
parent37b7e458c201a2f7788f3db8d85bed2ab2f8e190
- Query.from_self() as well as query.subquery() both disable
the rendering of eager joins inside the subquery produced.
The "disable all eager joins" feature is available publically
via a new query.enable_eagerloads() generative. [ticket:1276]
- Added a rudimental series of set operations to Query that
receive Query objects as arguments, including union(),
union_all(), intersect(), except_(), insertsect_all(),
except_all().  See the API documentation for
Query.union() for examples.
- Fixed bug that prevented Query.join() and eagerloads from
attaching to a query that selected from a union or aliased union.
CHANGES
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/orm/strategies.py
lib/sqlalchemy/orm/util.py
lib/sqlalchemy/sql/expression.py
test/orm/query.py
test/sql/generative.py