Commits

Mike Bayer committed e4e1445

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

Comments (0)

Files changed (4)

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

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

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(
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.