mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Allow first/last value functions to have frame definitions
Add a test case to check this behavior.
This commit is contained in:
@ -2147,7 +2147,8 @@ void get_window_functions_required_cursors(
|
||||
functions can keep the default frame generating code, overwrite it or
|
||||
add to it.
|
||||
*/
|
||||
if (item_win_func->is_frame_prohibited())
|
||||
if (item_win_func->is_frame_prohibited() ||
|
||||
item_win_func->requires_special_cursors())
|
||||
{
|
||||
add_special_frame_cursors(thd, cursor_manager, item_win_func);
|
||||
cursor_managers->push_back(cursor_manager);
|
||||
|
Reference in New Issue
Block a user