1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Removed Item::common_flags and replaced it with bit fields

This is to make the Item instances smaller
This commit is contained in:
Michael Widenius
2020-07-28 18:18:43 +03:00
committed by Sergei Golubchik
parent cd1782d26a
commit 00d13069dd
8 changed files with 41 additions and 45 deletions

View File

@@ -2387,7 +2387,7 @@ static bool has_named_parameters(List<Item> *params)
List_iterator<Item> it(*params);
while ((param= it++))
{
if (! param->is_autogenerated_name())
if (! param->is_autogenerated_name)
return true;
}
}
@@ -2633,7 +2633,7 @@ Create_func_arg1::create_func(THD *thd, LEX_CSTRING *name, List<Item> *item_list
Item *param_1= item_list->pop();
if (unlikely(! param_1->is_autogenerated_name()))
if (unlikely(! param_1->is_autogenerated_name))
{
my_error(ER_WRONG_PARAMETERS_TO_NATIVE_FCT, MYF(0), name->str);
return NULL;
@@ -2660,8 +2660,8 @@ Create_func_arg2::create_func(THD *thd, LEX_CSTRING *name, List<Item> *item_list
Item *param_1= item_list->pop();
Item *param_2= item_list->pop();
if (unlikely(!param_1->is_autogenerated_name() ||
!param_2->is_autogenerated_name()))
if (unlikely(!param_1->is_autogenerated_name ||
!param_2->is_autogenerated_name))
{
my_error(ER_WRONG_PARAMETERS_TO_NATIVE_FCT, MYF(0), name->str);
return NULL;
@@ -2689,9 +2689,9 @@ Create_func_arg3::create_func(THD *thd, LEX_CSTRING *name, List<Item> *item_list
Item *param_2= item_list->pop();
Item *param_3= item_list->pop();
if (unlikely(!param_1->is_autogenerated_name() ||
!param_2->is_autogenerated_name() ||
!param_3->is_autogenerated_name()))
if (unlikely(!param_1->is_autogenerated_name ||
!param_2->is_autogenerated_name ||
!param_3->is_autogenerated_name))
{
my_error(ER_WRONG_PARAMETERS_TO_NATIVE_FCT, MYF(0), name->str);
return NULL;