diff options
author | Alexander Barkov <bar@mariadb.com> | 2018-06-27 14:48:03 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2018-06-27 14:48:03 +0400 |
commit | e213b20e07e9304c595d3b2d57c275ce902e4097 (patch) | |
tree | 3ad14b97a00165f909e1313dc24a7eab81495f56 /sql/item_row.h | |
parent | d60fdb58141f4ae607b9595acd0ac5655fc71970 (diff) | |
download | mariadb-git-e213b20e07e9304c595d3b2d57c275ce902e4097.tar.gz |
MDEV-16592 Change Item::with_sum_func from a member to a virtual method
Diffstat (limited to 'sql/item_row.h')
-rw-r--r-- | sql/item_row.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/item_row.h b/sql/item_row.h index c0d64aba230..278dc88479d 100644 --- a/sql/item_row.h +++ b/sql/item_row.h @@ -36,7 +36,8 @@ class Item_row: public Item_fixed_hybrid, private Item_args, private Used_tables_and_const_cache, - private With_subquery_cache + private With_subquery_cache, + private With_sum_func_cache { table_map not_null_tables_cache; /** @@ -52,6 +53,7 @@ public: Item_row(THD *thd, Item_row *row) :Item_fixed_hybrid(thd), Item_args(thd, static_cast<Item_args*>(row)), Used_tables_and_const_cache(), + With_sum_func_cache(*row), not_null_tables_cache(0), with_null(0) { } @@ -99,6 +101,8 @@ public: void cleanup(); void split_sum_func(THD *thd, Ref_ptr_array ref_pointer_array, List<Item> &fields, uint flags); + bool with_sum_func() const { return m_with_sum_func; } + With_sum_func_cache* get_with_sum_func_cache() { return this; } table_map used_tables() const { return used_tables_cache; }; bool const_item() const { return const_item_cache; }; void update_used_tables() |