1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

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

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)