]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Using a "dynamic" loader with a "secondary" table now produces
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 25 Oct 2009 16:31:54 +0000 (16:31 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 25 Oct 2009 16:31:54 +0000 (16:31 +0000)
commit85d49bde73b0b131e4b11fee05d0c7a6de626de1
treee2a8c0a454e8720c12dba7112f35a8c48656811f
parenta77a0fd3eb909bb49b9e4e57edca4c5e5310ac9d
- Using a "dynamic" loader with a "secondary" table now produces
a query where the "secondary" table is *not* aliased.  This
allows the secondary Table object to be used in the "order_by"
attribute of the relation(), and also allows it to be used
in filter criterion against the dynamic relation.
[ticket:1531]

- a "dynamic" loader sets up its query criterion at construction
time so that the actual query is returned from non-cloning
accessors like "statement".
CHANGES
lib/sqlalchemy/orm/dynamic.py
lib/sqlalchemy/orm/properties.py
test/orm/test_dynamic.py