]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
return type of exists() is boolean, duh
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 9 Sep 2008 18:09:07 +0000 (18:09 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 9 Sep 2008 18:09:07 +0000 (18:09 +0000)
lib/sqlalchemy/sql/expression.py

index f7fc5f9617cb314846ad550ac352adaed2a96902..57770ef42ebb822e3ceb035bb16f5ca8117adc85 100644 (file)
@@ -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)