From: Mike Bayer Date: Tue, 9 Sep 2008 18:09:07 +0000 (+0000) Subject: return type of exists() is boolean, duh X-Git-Tag: rel_0_5rc1~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8010017e45f7c03ab843039ff03bfc4ee570a8b0;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git return type of exists() is boolean, duh --- diff --git a/lib/sqlalchemy/sql/expression.py b/lib/sqlalchemy/sql/expression.py index f7fc5f9617..57770ef42e 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)