1
0
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:
Vicențiu Ciorbaru
2016-09-21 16:45:36 +02:00
parent 74fa10645e
commit 872c0b4225
3 changed files with 12 additions and 77 deletions

View File

@ -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);