Commits

Mike Bayer  committed e4e1445

- 0.5.0rc1
- removed unneeded grouping from BooleanClauseList, generated needless parens

  • Participants
  • Parent commits a450c55
  • Tags rel_0_5rc1

Comments (0)

Files changed (4)

 CHANGES
 =======
 
-0.5beta4
+0.5.0rc1
 ========
 
 - orm
-0.5.0beta4
+0.5.0rc1

File lib/sqlalchemy/sql/expression.py

         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``.
 

File test/sql/select.py

                     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(