]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- joins along a relation() from a mapped
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 12 Aug 2008 20:31:14 +0000 (20:31 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 12 Aug 2008 20:31:14 +0000 (20:31 +0000)
commitd98caf9da81c6282cdde00e65fbf8c8b9e8dbd50
tree8ab1eb1b1848203ae1ce4db41097c5fb8ef30041
parent6d01d962290bb3f3973f37c61ee489ca1d94f515
- joins along a relation() from a mapped
class to a mapped subclass, where the mapped
subclass is configured with single table
inheritance, will include an
IN clause which limits the subtypes of the
joined class to those requsted, within the
ON clause of the join.  This takes effect for
eager load joins as well as query.join().
Note that in some scenarios the IN clause will
appear in the WHERE clause of the query
as well since this discrimination has multiple
trigger points.
CHANGES
lib/sqlalchemy/orm/properties.py
test/orm/inheritance/single.py