mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-9724: Window functions: Frame Exclusion support
Produce a "not supported" error if one attempts to exclude rows
This commit is contained in:
@ -127,6 +127,12 @@ setup_windows(THD *thd, Ref_ptr_array ref_pointer_array, TABLE_LIST *tables,
|
||||
DBUG_RETURN(1);
|
||||
}
|
||||
|
||||
if (win_spec->window_frame &&
|
||||
win_spec->window_frame->exclusion != Window_frame::EXCL_NONE)
|
||||
{
|
||||
my_error(ER_FRAME_EXCLUSION_NOT_SUPPORTED, MYF(0));
|
||||
DBUG_RETURN(1);
|
||||
}
|
||||
/*
|
||||
For "win_func() OVER (ORDER BY order_list RANGE BETWEEN ...)",
|
||||
- ORDER BY order_list must not be ommitted
|
||||
|
Reference in New Issue
Block a user