From 89b1c2712a9cff99f79d05362f4a0dc183738ba5 Mon Sep 17 00:00:00 2001 From: Varun Gupta Date: Thu, 17 May 2018 17:19:33 +0530 Subject: MDEV-14520: Custom aggregate functions work incorrectly with WITH ROLLUP clause Queries involving rollup need all aggregate function to have copy_or_same function where we create a copy of item_sum items for each sum level. Implemented copy_or_same function for the custom aggregate function class (Item_sum_sp) --- sql/item.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sql/item.h') diff --git a/sql/item.h b/sql/item.h index c1e306d95b6..df6c922f300 100644 --- a/sql/item.h +++ b/sql/item.h @@ -4658,6 +4658,7 @@ public: */ Field *sp_result_field; Item_sp(THD *thd, Name_resolution_context *context_arg, sp_name *name_arg); + Item_sp(THD *thd, Item_sp *item); const char *func_name(THD *thd) const; void cleanup(); bool sp_check_access(THD *thd); -- cgit v1.2.1