diff options
author | Varun Gupta <varunraiko1803@gmail.com> | 2018-05-17 17:19:33 +0530 |
---|---|---|
committer | Varun Gupta <varunraiko1803@gmail.com> | 2018-05-19 15:12:15 +0530 |
commit | 89b1c2712a9cff99f79d05362f4a0dc183738ba5 (patch) | |
tree | 856e279eee9dccc95556cd768ad653f713d03a2f /sql/item.h | |
parent | 7bf4a006b3ecf669fc39c14064f2062170ff1a10 (diff) | |
download | mariadb-git-89b1c2712a9cff99f79d05362f4a0dc183738ba5.tar.gz |
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)
Diffstat (limited to 'sql/item.h')
-rw-r--r-- | sql/item.h | 1 |
1 files changed, 1 insertions, 0 deletions
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); |