Simplified Window.as_sql().

This commit is contained in:
Sergey Fedoseev 2019-02-09 18:41:35 +05:00 committed by Tim Graham
parent ea87a85fad
commit eefc9550fd
1 changed files with 2 additions and 2 deletions

View File

@ -1251,12 +1251,12 @@ class Window(Expression):
if self.order_by is not None:
window_sql.append(' ORDER BY ')
order_sql, order_params = compiler.compile(self.order_by)
window_sql.extend(''.join(order_sql))
window_sql.extend(order_sql)
window_params.extend(order_params)
if self.frame:
frame_sql, frame_params = compiler.compile(self.frame)
window_sql.extend(' ' + frame_sql)
window_sql.append(' ' + frame_sql)
window_params.extend(frame_params)
params.extend(window_params)