diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-09-30 17:20:15 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-09-30 17:20:15 -0400 |
commit | 061d5cfab13c1e9e5546248ea48178cafbebb7a5 (patch) | |
tree | f214313a6d5816709e1b731af48571020df3d5d2 /lib | |
parent | 62b7a8133a54a07934153b767a7f755a28beec24 (diff) | |
download | sqlalchemy-061d5cfab13c1e9e5546248ea48178cafbebb7a5.tar.gz |
spacing
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sqlalchemy/sql/compiler.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index d97c048a9..bb1d757be 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -530,17 +530,17 @@ class SQLCompiler(engine.Compiled): cast.typeclause._compiler_dispatch(self, **kwargs)) def visit_over(self, over, **kwargs): - return "%s OVER (%s)" % ( - over.func._compiler_dispatch(self, **kwargs), - ' '.join( + return "%s OVER (%s)" % ( + over.func._compiler_dispatch(self, **kwargs), + ' '.join( '%s BY %s' % (word, clause._compiler_dispatch(self, **kwargs)) for word, clause in ( ('PARTITION', over.partition_by), ('ORDER', over.order_by) ) if clause is not None and len(clause) - ) - ) + ) + ) def visit_extract(self, extract, **kwargs): field = self.extract_map.get(extract.field, extract.field) |