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:
@ -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);
|
||||||
|
Reference in New Issue
Block a user