summaryrefslogtreecommitdiff
path: root/sql/item_strfunc.cc
diff options
context:
space:
mode:
authorunknown <bar@bar.mysql.r18.ru>2003-07-04 19:56:32 +0500
committerunknown <bar@bar.mysql.r18.ru>2003-07-04 19:56:32 +0500
commita371a6e6ca04090999c69359da55f772154d9b97 (patch)
treeb4d5f73a9fa4768d66ecdda8ba292e4cd742eda0 /sql/item_strfunc.cc
parentc29f49c24d3d2d6549729984a7a3c4c6854d7a22 (diff)
downloadmariadb-git-a371a6e6ca04090999c69359da55f772154d9b97.tar.gz
Better arguments format to allow reuse more code
Diffstat (limited to 'sql/item_strfunc.cc')
-rw-r--r--sql/item_strfunc.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc
index 8c3784a5d4e..f46959e5365 100644
--- a/sql/item_strfunc.cc
+++ b/sql/item_strfunc.cc
@@ -324,7 +324,7 @@ void Item_func_concat::fix_length_and_dec()
bool first_coll= 1;
max_length=0;
- if (agg_arg_collations(collation, 0, arg_count))
+ if (agg_arg_collations(collation, args, arg_count))
return;
for (uint i=0 ; i < arg_count ; i++)
@@ -823,7 +823,7 @@ void Item_func_replace::fix_length_and_dec()
maybe_null=1;
}
- if (agg_arg_collations_for_comparison(collation, 0, 3))
+ if (agg_arg_collations_for_comparison(collation, args, 3))
return;
}
@@ -1029,7 +1029,7 @@ void Item_func_substr_index::fix_length_and_dec()
{
max_length= args[0]->max_length;
- if (agg_arg_collations_for_comparison(collation, 0, 2))
+ if (agg_arg_collations_for_comparison(collation, args, 2))
return;
}
@@ -1658,7 +1658,7 @@ void Item_func_elt::fix_length_and_dec()
max_length=0;
decimals=0;
- if (agg_arg_collations(collation, 0, arg_count))
+ if (agg_arg_collations(collation, args, arg_count))
return;
for (uint i=0 ; i < arg_count ; i++)
@@ -1758,7 +1758,7 @@ void Item_func_make_set::fix_length_and_dec()
{
max_length=arg_count-1;
- if (agg_arg_collations(collation, 0, arg_count))
+ if (agg_arg_collations(collation, args, arg_count))
return;
for (uint i=0 ; i < arg_count ; i++)
@@ -2431,7 +2431,7 @@ void Item_func_export_set::fix_length_and_dec()
uint sep_length=(arg_count > 3 ? args[3]->max_length : 1);
max_length=length*64+sep_length*63;
- if (agg_arg_collations(collation,1, min(4,arg_count)))
+ if (agg_arg_collations(collation, args+1, min(4,arg_count)-1))
return;
}