Commit e963b0d1 authored by Alexander Barkov's avatar Alexander Barkov

MDEV-16725 Add accessor methods for classes in item_timefunc.h

parent 2dd6cd5f
......@@ -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 @@ class Item_func_timestamp :public Item_datetimefunc
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) {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment