summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorVarun Gupta <varunraiko1803@gmail.com>2018-05-17 17:19:33 +0530
committerVarun Gupta <varunraiko1803@gmail.com>2018-05-19 15:12:15 +0530
commit89b1c2712a9cff99f79d05362f4a0dc183738ba5 (patch)
tree856e279eee9dccc95556cd768ad653f713d03a2f /sql/item.h
parent7bf4a006b3ecf669fc39c14064f2062170ff1a10 (diff)
downloadmariadb-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.h1
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);