summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2008-09-09 18:09:07 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2008-09-09 18:09:07 +0000
commit8010017e45f7c03ab843039ff03bfc4ee570a8b0 (patch)
tree89cb871b83172bab965c897def578c82493a169d /lib/sqlalchemy
parent3b724ae1ccefd0b8db516877b58a3411803e44ad (diff)
downloadsqlalchemy-8010017e45f7c03ab843039ff03bfc4ee570a8b0.tar.gz
return type of exists() is boolean, duh
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r--lib/sqlalchemy/sql/expression.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/expression.py b/lib/sqlalchemy/sql/expression.py
index f7fc5f961..57770ef42 100644
--- a/lib/sqlalchemy/sql/expression.py
+++ b/lib/sqlalchemy/sql/expression.py
@@ -2278,7 +2278,7 @@ class _Exists(_UnaryExpression):
args = ([literal_column('*')],)
s = select(*args, **kwargs).as_scalar().self_group()
- _UnaryExpression.__init__(self, s, operator=operators.exists)
+ _UnaryExpression.__init__(self, s, operator=operators.exists, type_=sqltypes.Boolean)
def select(self, whereclause=None, **params):
return select([self], whereclause, **params)