mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Remove calls to current_thd() in Item functions
- Added THD argument to functions that calls current_thd() or new without a mem_root argument: make_same(), set_comparator_func(), set_cmp_func(), set_cmp_func*(), set_aggregator() and prepare_sum_aggregators() - Changed "new Class" to "new (thd->mem_root) Class" Almost all changes mechanical, no logic changes.
This commit is contained in:
committed by
Sergei Golubchik
parent
3105c9e7a5
commit
9448548481
@ -4181,7 +4181,7 @@ public:
|
||||
DBUG_ASSERT(0);
|
||||
return 0;
|
||||
}
|
||||
virtual bool set_comparator_func(Arg_comparator *cmp) const= 0;
|
||||
virtual bool set_comparator_func(THD *thd, Arg_comparator *cmp) const= 0;
|
||||
virtual bool Item_const_eq(const Item_const *a, const Item_const *b,
|
||||
bool binary_cmp) const
|
||||
{
|
||||
@ -4521,7 +4521,7 @@ public:
|
||||
DBUG_ASSERT(0);
|
||||
return NULL;
|
||||
}
|
||||
bool set_comparator_func(Arg_comparator *cmp) const override;
|
||||
bool set_comparator_func(THD *thd, Arg_comparator *cmp) const override;
|
||||
bool Item_hybrid_func_fix_attributes(THD *thd,
|
||||
const char *name,
|
||||
Type_handler_hybrid_field_type *,
|
||||
@ -4818,7 +4818,7 @@ public:
|
||||
const override;
|
||||
Item *make_const_item_for_comparison(THD *, Item *src, const Item *cmp)
|
||||
const override;
|
||||
bool set_comparator_func(Arg_comparator *cmp) const override;
|
||||
bool set_comparator_func(THD *thd, Arg_comparator *cmp) const override;
|
||||
bool Item_hybrid_func_fix_attributes(THD *thd,
|
||||
const char *name,
|
||||
Type_handler_hybrid_field_type *,
|
||||
@ -4954,7 +4954,7 @@ public:
|
||||
Item *make_const_item_for_comparison(THD *, Item *src, const Item *cmp) const
|
||||
override;
|
||||
Item_cache *Item_get_cache(THD *thd, const Item *item) const override;
|
||||
bool set_comparator_func(Arg_comparator *cmp) const override;
|
||||
bool set_comparator_func(THD *thd, Arg_comparator *cmp) const override;
|
||||
bool Item_hybrid_func_fix_attributes(THD *thd,
|
||||
const char *name,
|
||||
Type_handler_hybrid_field_type *,
|
||||
@ -5188,7 +5188,7 @@ public:
|
||||
int Item_save_in_field(Item *item, Field *field, bool no_conversions) const override;
|
||||
Item *make_const_item_for_comparison(THD *, Item *src, const Item *cmp) const override;
|
||||
Item_cache *Item_get_cache(THD *thd, const Item *item) const override;
|
||||
bool set_comparator_func(Arg_comparator *cmp) const override;
|
||||
bool set_comparator_func(THD *thd, Arg_comparator *cmp) const override;
|
||||
bool Item_hybrid_func_fix_attributes(THD *thd,
|
||||
const char *name,
|
||||
Type_handler_hybrid_field_type *,
|
||||
@ -5452,7 +5452,7 @@ public:
|
||||
Item *make_const_item_for_comparison(THD *, Item *src, const Item *cmp) const
|
||||
override;
|
||||
Item_cache *Item_get_cache(THD *thd, const Item *item) const override;
|
||||
bool set_comparator_func(Arg_comparator *cmp) const override;
|
||||
bool set_comparator_func(THD *thd, Arg_comparator *cmp) const override;
|
||||
bool Item_hybrid_func_fix_attributes(THD *thd,
|
||||
const char *name,
|
||||
Type_handler_hybrid_field_type *,
|
||||
@ -6168,7 +6168,7 @@ public:
|
||||
bool Item_func_int_val_fix_length_and_dec(Item_func_int_val*) const override;
|
||||
Item *make_const_item_for_comparison(THD *, Item *src, const Item *cmp)
|
||||
const override;
|
||||
bool set_comparator_func(Arg_comparator *cmp) const override;
|
||||
bool set_comparator_func(THD *thd, Arg_comparator *cmp) const override;
|
||||
cmp_item *make_cmp_item(THD *thd, CHARSET_INFO *cs) const override;
|
||||
in_vector *make_in_vector(THD *, const Item_func_in *, uint nargs)
|
||||
const override;
|
||||
@ -6262,7 +6262,7 @@ public:
|
||||
const override;
|
||||
Item *make_const_item_for_comparison(THD *, Item *src, const Item *cmp)
|
||||
const override;
|
||||
bool set_comparator_func(Arg_comparator *cmp) const override;
|
||||
bool set_comparator_func(THD *thd, Arg_comparator *cmp) const override;
|
||||
cmp_item *make_cmp_item(THD *thd, CHARSET_INFO *cs) const override;
|
||||
in_vector *make_in_vector(THD *, const Item_func_in *, uint nargs)
|
||||
const override;
|
||||
@ -6632,7 +6632,7 @@ public:
|
||||
longlong Item_func_min_max_val_int(Item_func_min_max *) const override;
|
||||
my_decimal *Item_func_min_max_val_decimal(Item_func_min_max *,
|
||||
my_decimal *) const override;
|
||||
bool set_comparator_func(Arg_comparator *cmp) const override;
|
||||
bool set_comparator_func(THD *thd, Arg_comparator *cmp) const override;
|
||||
bool Item_hybrid_func_fix_attributes(THD *thd,
|
||||
const char *name,
|
||||
Type_handler_hybrid_field_type *,
|
||||
|
Reference in New Issue
Block a user