]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- An alias() of a select() will convert to a "scalar subquery"
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 21 Mar 2009 16:12:37 +0000 (16:12 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 21 Mar 2009 16:12:37 +0000 (16:12 +0000)
commit0983b610b47d2cbe502837ded365a2d2dbcdc883
treea43a8311554a871cefa6f691dc5a3b62f463997b
parent3ecf84f5adb428f814cd18b47ac65d133112cbf0
- An alias() of a select() will convert to a "scalar subquery"
when used in an unambiguously scalar context, i.e. it's used
in a comparison operation.  This applies to
the ORM when using query.subquery() as well.
CHANGES
lib/sqlalchemy/sql/expression.py
test/orm/query.py
test/sql/select.py