summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ext/selectresults.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-08-27 21:22:28 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-08-27 21:22:28 +0000
commit7252ccd7c988d2fe2f218401a0a81738e19fa239 (patch)
tree625eb2dc56b3d3133de86b91565cb6a619d97a11 /lib/sqlalchemy/ext/selectresults.py
parent47332cb1477f6a5affb5b78bb8aff0523c499d90 (diff)
downloadsqlalchemy-7252ccd7c988d2fe2f218401a0a81738e19fa239.tar.gz
- fix to using query.count() with distinct, **kwargs with SelectResults
count() [ticket:287]
Diffstat (limited to 'lib/sqlalchemy/ext/selectresults.py')
-rw-r--r--lib/sqlalchemy/ext/selectresults.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/ext/selectresults.py b/lib/sqlalchemy/ext/selectresults.py
index 79d56ec67..a35cdfa7e 100644
--- a/lib/sqlalchemy/ext/selectresults.py
+++ b/lib/sqlalchemy/ext/selectresults.py
@@ -28,7 +28,7 @@ class SelectResults(object):
def count(self):
"""executes the SQL count() function against the SelectResults criterion."""
- return self._query.count(self._clause)
+ return self._query.count(self._clause, **self._ops)
def _col_aggregate(self, col, func):
"""executes func() function against the given column