]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Query.select_from() now replaces all existing FROM criterion with
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 9 Dec 2007 23:27:04 +0000 (23:27 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 9 Dec 2007 23:27:04 +0000 (23:27 +0000)
commit5cdb942791b9aeb63d02680c712d1afc104606b0
treeb4a0d319063136e299bf4a01399febc767c10186
parent7cbfbba9496fc41c21390aad8d8731c45fbacbce
- Query.select_from() now replaces all existing FROM criterion with
the given argument; the previous behavior of constructing a list
of FROM clauses was generally not useful as is required
filter() calls to create join criterion, and new tables introduced
within filter() already add themselves to the FROM clause.  The
new behavior allows not just joins from the main table, but select
statements as well.  Filter criterion, order bys, eager load
clauses will be "aliased" against the given statement.
CHANGES
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/orm/strategies.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/expression.py
test/orm/query.py
test/sql/select.py