Commit b0154190 authored by Sergei Petrunia's avatar Sergei Petrunia

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

parent ee9297f6
......@@ -135,7 +135,7 @@ setup_windows(THD *thd, Ref_ptr_array ref_pointer_array, TABLE_LIST *tables,
if (win_spec->window_frame &&
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));
DBUG_RETURN(1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment