1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Remove the wrong check, win_spec->order_list may be empty but it is not NULL.

This commit is contained in:
Sergei Petrunia
2016-03-17 21:50:07 +03:00
parent ee9297f656
commit b0154190fb

View File

@ -135,7 +135,7 @@ setup_windows(THD *thd, Ref_ptr_array ref_pointer_array, TABLE_LIST *tables,
if (win_spec->window_frame && if (win_spec->window_frame &&
win_spec->window_frame->units == Window_frame::UNITS_RANGE) win_spec->window_frame->units == Window_frame::UNITS_RANGE)
{ {
if (!win_spec->order_list || win_spec->order_list->elements != 1) if (win_spec->order_list->elements != 1)
{ {
my_error(ER_RANGE_FRAME_NEEDS_SIMPLE_ORDERBY, MYF(0)); my_error(ER_RANGE_FRAME_NEEDS_SIMPLE_ORDERBY, MYF(0));
DBUG_RETURN(1); DBUG_RETURN(1);