Commits

Mike Bayer committed a7c1e17

2.5 ism

Comments (0)

Files changed (1)

lib/sqlalchemy/sql/expression.py

         return self.with_only_columns(
                 sqlutil.reduce_columns(
                         self.inner_columns,
-                        *(self._whereclause, ) + tuple(self._from_obj),
-                        only_synonyms=only_synonyms
+                        only_synonyms=only_synonyms,
+                        *(self._whereclause, ) + tuple(self._from_obj)
                 )
             )