diff options
author | Alexander Barkov <bar@mariadb.org> | 2017-02-27 10:07:59 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2017-02-27 10:07:59 +0400 |
commit | 47b7ffb396bd283bd4196194311ba39ed9692421 (patch) | |
tree | ee69ec3d890c77a123f66b5c27ac0697163491ad /sql/item_cmpfunc.h | |
parent | 3f83801d8266fa465d296dbe528a5ea132945a84 (diff) | |
parent | 78153cf641aea41166d3e79ae99b57b154f6a027 (diff) | |
download | mariadb-git-47b7ffb396bd283bd4196194311ba39ed9692421.tar.gz |
Merge remote-tracking branch 'origin/10.2' into bb-10.2-ext
Diffstat (limited to 'sql/item_cmpfunc.h')
-rw-r--r-- | sql/item_cmpfunc.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/sql/item_cmpfunc.h b/sql/item_cmpfunc.h index 6fbbf2ac40f..ae255294cd3 100644 --- a/sql/item_cmpfunc.h +++ b/sql/item_cmpfunc.h @@ -55,7 +55,6 @@ class Arg_comparator: public Sql_alloc Arg_comparator *comparators; // used only for compare_row() double precision; /* Fields used in DATE/DATETIME comparison. */ - THD *thd; Item *a_cache, *b_cache; // Cached values of a and b items // when one of arguments is NULL. @@ -71,12 +70,12 @@ public: Arg_comparator(): m_compare_handler(&type_handler_null), m_compare_collation(&my_charset_bin), - set_null(TRUE), comparators(0), thd(0), + set_null(TRUE), comparators(0), a_cache(0), b_cache(0) {}; Arg_comparator(Item **a1, Item **a2): a(a1), b(a2), m_compare_handler(&type_handler_null), m_compare_collation(&my_charset_bin), - set_null(TRUE), comparators(0), thd(0), + set_null(TRUE), comparators(0), a_cache(0), b_cache(0) {}; public: @@ -1290,13 +1289,11 @@ class in_temporal :public in_longlong protected: uchar *get_value_internal(Item *item, enum_field_types f_type); public: - THD *thd; /* Cache for the left item. */ Item *lval_cache; in_temporal(THD *thd, uint elements) - :in_longlong(thd, elements), thd(current_thd), - lval_cache(0) {}; + :in_longlong(thd, elements), lval_cache(0) {}; Item *create_item(THD *thd); void value_to_item(uint pos, Item *item) { @@ -1489,12 +1486,11 @@ protected: longlong value; void store_value_internal(Item *item, enum_field_types type); public: - THD *thd; /* Cache for the left item. */ Item *lval_cache; cmp_item_temporal() - :thd(current_thd), lval_cache(0) {} + :lval_cache(0) {} int compare(cmp_item *ci); }; |