From e963b0d12f93fd80906adb777781e9a563d705f8 Mon Sep 17 00:00:00 2001 From: Alexander Barkov Date: Tue, 27 Nov 2018 14:08:03 +0400 Subject: [PATCH] MDEV-16725 Add accessor methods for classes in item_timefunc.h --- sql/item_timefunc.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sql/item_timefunc.h b/sql/item_timefunc.h index 3824f87d12b..d9ab45ed46d 100644 --- a/sql/item_timefunc.h +++ b/sql/item_timefunc.h @@ -1079,6 +1079,9 @@ class Item_char_typecast :public Item_str_func uint adjusted_length_with_warn(uint length); void check_truncation_with_warn(String *src, size_t dstlen); void fix_length_and_dec_internal(CHARSET_INFO *fromcs); +public: + // Methods used by ColumnStore + uint get_cast_length() const { return cast_length; } public: Item_char_typecast(THD *thd, Item *a, uint length_arg, CHARSET_INFO *cs_arg): Item_str_func(thd, a), cast_length(length_arg), cast_cs(cs_arg), @@ -1249,6 +1252,9 @@ public: class Item_func_add_time :public Item_handled_func { int sign; +public: + // Methods used by ColumnStore + int get_sign() const { return sign; } public: Item_func_add_time(THD *thd, Item *a, Item *b, bool neg_arg) :Item_handled_func(thd, a, b), sign(neg_arg ? -1 : 1) @@ -1334,6 +1340,9 @@ class Item_func_timestamp_diff :public Item_longlong_func bool check_arguments() const { return check_argument_types_can_return_date(0, arg_count); } const interval_type int_type; +public: + // Methods used by ColumnStore + interval_type get_int_type() const { return int_type; }; public: Item_func_timestamp_diff(THD *thd, Item *a, Item *b, interval_type type_arg): Item_longlong_func(thd, a, b), int_type(type_arg) {}