mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fixed bug mdev-11907.
With the current design the function copy_funcs() should ignore the items with window functions from the array **func_ptr.
This commit is contained in:
@ -23338,6 +23338,9 @@ copy_funcs(Item **func_ptr, const THD *thd)
|
||||
Item *func;
|
||||
for (; (func = *func_ptr) ; func_ptr++)
|
||||
{
|
||||
if (func->type() == Item::FUNC_ITEM &&
|
||||
((Item_func *) func)->with_window_func)
|
||||
continue;
|
||||
func->save_in_result_field(1);
|
||||
/*
|
||||
Need to check the THD error state because Item::val_xxx() don't
|
||||
|
Reference in New Issue
Block a user