1
0
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:
Igor Babaev
2017-03-28 14:48:54 -07:00
parent d9bab412e9
commit f381e73f7d
3 changed files with 45 additions and 88 deletions

View File

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