super(BooleanClauseList, self).__init__(*clauses, **kwargs)
self.type = sqltypes.to_instance(kwargs.get('type_', sqltypes.Boolean))
- def self_group(self, against=None):
- return _Grouping(self)
-
+
class _CalculatedClause(ColumnElement):
"""Describe a calculated SQL expression that has a type, like ``CASE``.
exists().where(table2.c.otherid=='bar')
)
]),
- "SELECT ((EXISTS (SELECT * FROM myothertable WHERE myothertable.otherid = :otherid_1)) "\
- "OR (EXISTS (SELECT * FROM myothertable WHERE myothertable.otherid = :otherid_2))) AS anon_1"
+ "SELECT (EXISTS (SELECT * FROM myothertable WHERE myothertable.otherid = :otherid_1)) "\
+ "OR (EXISTS (SELECT * FROM myothertable WHERE myothertable.otherid = :otherid_2)) AS anon_1"
)
assert str(x) == 'a AND b AND c'
self.assert_compile(
select([x.label('foo')]),
- 'SELECT (a AND b AND c) AS foo'
+ 'SELECT a AND b AND c AS foo'
)
self.assert_compile(