summaryrefslogtreecommitdiff
path: root/sql/item_sum.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2018-11-27 14:19:54 +0400
committerAlexander Barkov <bar@mariadb.com>2018-11-27 14:21:30 +0400
commita956260d826650f0a35779621c5987dc30f7ba04 (patch)
tree47e9043b7895a97c70437445d119b9aaabe970dc /sql/item_sum.h
parent19a6a018e8d370c8b82c71bdd63172453a8f754c (diff)
downloadmariadb-git-a956260d826650f0a35779621c5987dc30f7ba04.tar.gz
MDEV-16715 Add accessors for Item_sum and Item_func_group_concat classes
Diffstat (limited to 'sql/item_sum.h')
-rw-r--r--sql/item_sum.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/sql/item_sum.h b/sql/item_sum.h
index 1a21c257221..f58fa0b9688 100644
--- a/sql/item_sum.h
+++ b/sql/item_sum.h
@@ -384,7 +384,9 @@ protected:
Item **orig_args, *tmp_orig_args[2];
static size_t ram_limitation(THD *thd);
-
+public:
+ // Methods used by ColumnStore
+ Item **get_orig_args() const { return orig_args; }
public:
void mark_as_sum_func();
@@ -1826,6 +1828,14 @@ class Item_func_group_concat : public Item_sum
element_count count __attribute__((unused)),
void* item_arg);
public:
+ // Methods used by ColumnStore
+ bool get_distinct() const { return distinct; }
+ uint get_count_field() const { return arg_count_field; }
+ uint get_order_field() const { return arg_count_order; }
+ const String* get_separator() const { return separator; }
+ ORDER** get_order() const { return order; }
+
+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,