summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)