summaryrefslogtreecommitdiff
path: root/sql/item_sum.h
diff options
context:
space:
mode:
authorVarun Gupta <varunraiko1803@gmail.com>2017-12-08 12:21:26 +0530
committerVarun Gupta <varunraiko1803@gmail.com>2017-12-08 12:21:26 +0530
commit6d63a03490298a8b7246e7f4516eb383534f8e8c (patch)
tree3a642cd224aa0c0ba413e2c9dd53198504ea9184 /sql/item_sum.h
parent3aa618a969546234898e6c5110faf2d72d4c10f8 (diff)
downloadmariadb-git-6d63a03490298a8b7246e7f4516eb383534f8e8c.tar.gz
MDEV-11297: Add support for LIMIT clause in GROUP_CONCAT()
Diffstat (limited to 'sql/item_sum.h')
-rw-r--r--sql/item_sum.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/sql/item_sum.h b/sql/item_sum.h
index fd6b20e2b81..cbf245f3cd3 100644
--- a/sql/item_sum.h
+++ b/sql/item_sum.h
@@ -1747,6 +1747,16 @@ class Item_func_group_concat : public Item_sum
bool always_null;
bool force_copy_fields;
bool no_appended;
+ /** Limits the rows in the result */
+ Item *row_limit;
+ /** Skips a particular number of rows in from the result*/
+ Item *offset_limit;
+ bool limit_clause;
+ /* copy of the offset limit */
+ ulonglong copy_offset_limit;
+ /*copy of the row limit */
+ ulonglong copy_row_limit;
+
/*
Following is 0 normal object and pointer to original one for copy
(to correctly free resources)
@@ -1763,7 +1773,8 @@ class Item_func_group_concat : public Item_sum
public:
Item_func_group_concat(THD *thd, Name_resolution_context *context_arg,
bool is_distinct, List<Item> *is_select,
- const SQL_I_List<ORDER> &is_order, String *is_separator);
+ const SQL_I_List<ORDER> &is_order, String *is_separator,
+ bool limit_clause, Item *row_limit, Item *offset_limit);
Item_func_group_concat(THD *thd, Item_func_group_concat *item);
~Item_func_group_concat();