mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
MDEV-22463: Element_type &Bounds_checked_array<Item *>::operator[](size_t) [Element_type = Item *]: Assertion `n < m_size' failed.
Allocate space for fields inside the window function (arguments, PARTITION BY and ORDER BY clause) in the ref pointer array. All fields inside the window function are part of the temporary table that is required for the window function computation.
This commit is contained in:
@@ -2969,6 +2969,14 @@ Window_funcs_computation::save_explain_plan(MEM_ROOT *mem_root,
|
||||
return xpl;
|
||||
}
|
||||
|
||||
|
||||
bool st_select_lex::add_window_func(Item_window_func *win_func)
|
||||
{
|
||||
if (parsing_place != SELECT_LIST)
|
||||
fields_in_window_functions+= win_func->window_func()->argument_count();
|
||||
return window_funcs.push_back(win_func);
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Unneeded comments (will be removed when we develop a replacement for
|
||||
// the feature that was attempted here
|
||||
|
||||
Reference in New Issue
Block a user