summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2015-09-21 12:40:07 +0400
committerAlexander Barkov <bar@mariadb.org>2015-09-21 12:40:07 +0400
commitafa17734395f842f728e2539145854d3eb7cd9a8 (patch)
tree618890a8b2b853409ede48a2656def3f4fb4f995 /sql
parent1956340247eaa14138e2af0b0e2db29cc6bd14e8 (diff)
downloadmariadb-git-afa17734395f842f728e2539145854d3eb7cd9a8.tar.gz
Moving Item_args::arg_count from "public" to "protected".
Diffstat (limited to 'sql')
-rw-r--r--sql/item.h2
-rw-r--r--sql/item_cmpfunc.cc2
-rw-r--r--sql/item_strfunc.cc2
-rw-r--r--sql/item_subselect.cc2
-rw-r--r--sql/sql_select.cc6
5 files changed, 7 insertions, 7 deletions
diff --git a/sql/item.h b/sql/item.h
index 9142b3ef447..50970c0dd9a 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -3479,6 +3479,7 @@ class Item_args
{
protected:
Item **args, *tmp_arg[2];
+ uint arg_count;
void set_arguments(THD *thd, List<Item> &list);
bool walk_args(Item_processor processor, bool walk_subquery, uchar *arg)
{
@@ -3492,7 +3493,6 @@ protected:
bool transform_args(THD *thd, Item_transformer transformer, uchar *arg);
void propagate_equal_fields(THD *, const Item::Context &, COND_EQUAL *);
public:
- uint arg_count;
Item_args(void)
:args(NULL), arg_count(0)
{ }
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc
index ac23df46455..46b6eac1997 100644
--- a/sql/item_cmpfunc.cc
+++ b/sql/item_cmpfunc.cc
@@ -1863,7 +1863,7 @@ bool Item_func_opt_neg::eq(const Item *item, bool binary_cmp) const
if (item->type() != FUNC_ITEM)
return 0;
Item_func *item_func=(Item_func*) item;
- if (arg_count != item_func->arg_count ||
+ if (arg_count != item_func->argument_count() ||
functype() != item_func->functype())
return 0;
if (negated != ((Item_func_opt_neg *) item_func)->negated)
diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc
index ef2e96e8234..2357f63bc88 100644
--- a/sql/item_strfunc.cc
+++ b/sql/item_strfunc.cc
@@ -3485,7 +3485,7 @@ bool Item_func_set_collation::eq(const Item *item, bool binary_cmp) const
if (item->type() != FUNC_ITEM)
return 0;
Item_func *item_func=(Item_func*) item;
- if (arg_count != item_func->arg_count ||
+ if (arg_count != item_func->argument_count() ||
functype() != item_func->functype())
return 0;
Item_func_set_collation *item_func_sc=(Item_func_set_collation*) item;
diff --git a/sql/item_subselect.cc b/sql/item_subselect.cc
index 227d84dd213..4e27eaf24cf 100644
--- a/sql/item_subselect.cc
+++ b/sql/item_subselect.cc
@@ -2638,7 +2638,7 @@ static bool check_equality_for_exist2in(Item_func *func,
Item **args;
if (func->functype() != Item_func::EQ_FUNC)
return FALSE;
- DBUG_ASSERT(func->arg_count == 2);
+ DBUG_ASSERT(func->argument_count() == 2);
args= func->arguments();
if (args[0]->real_type() == Item::FIELD_ITEM &&
args[0]->all_used_tables() != OUTER_REF_TABLE_BIT &&
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index 8973848b8a8..a9bebecfa52 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -5045,7 +5045,7 @@ add_ft_keys(DYNAMIC_ARRAY *keyuse_array,
Item_func::Functype functype= func->functype();
if (functype == Item_func::FT_FUNC)
cond_func=(Item_func_match *)cond;
- else if (func->arg_count == 2)
+ else if (func->argument_count() == 2)
{
Item *arg0=(Item *)(func->arguments()[0]),
*arg1=(Item *)(func->arguments()[1]);
@@ -23167,13 +23167,13 @@ void free_underlaid_joins(THD *thd, SELECT_LEX *select)
static bool change_group_ref(THD *thd, Item_func *expr, ORDER *group_list,
bool *changed)
{
- if (expr->arg_count)
+ if (expr->argument_count())
{
Name_resolution_context *context= &thd->lex->current_select->context;
Item **arg,**arg_end;
bool arg_changed= FALSE;
for (arg= expr->arguments(),
- arg_end= expr->arguments()+expr->arg_count;
+ arg_end= expr->arguments() + expr->argument_count();
arg != arg_end; arg++)
{
Item *item= *arg;