summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/engine/base.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2008-11-09 16:06:05 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2008-11-09 16:06:05 +0000
commit043379efa5d61626c9a8ab42b15c7687c6e6a0fd (patch)
treea0d1012d6644f5d4ac227353ceaa5c1faffaa880 /lib/sqlalchemy/engine/base.py
parent3f8914b4b28f309467b96f2903388e69cf8c2b2d (diff)
downloadsqlalchemy-043379efa5d61626c9a8ab42b15c7687c6e6a0fd.tar.gz
- Query.count() has been enhanced to do the "right
thing" in a wider variety of cases. It can now count multiple-entity queries, as well as column-based queries. Note that this means if you say query(A, B).count() without any joining criterion, it's going to count the cartesian product of A*B. Any query which is against column-based entities will automatically issue "SELECT count(1) FROM (SELECT...)" so that the real rowcount is returned, meaning a query such as query(func.count(A.name)).count() will return a value of one, since that query would return one row.
Diffstat (limited to 'lib/sqlalchemy/engine/base.py')
0 files changed, 0 insertions, 0 deletions