summaryrefslogtreecommitdiff
path: root/sql/sql_profile.cc
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2019-05-23 14:57:29 +0400
committerAlexander Barkov <bar@mariadb.com>2019-05-23 14:58:03 +0400
commitc83018751cc8eed11279eb6df555bd66c153fa9a (patch)
tree3d6fa41a975ca9ad1cee5308feda49b787183987 /sql/sql_profile.cc
parent826f9d4f7e99973cafe7654697d7c50b8b64b76b (diff)
downloadmariadb-git-c83018751cc8eed11279eb6df555bd66c153fa9a.tar.gz
MDEV-19566 Remove Item::name related strlen() calls in constructors of some Item_string descendands
Diffstat (limited to 'sql/sql_profile.cc')
-rw-r--r--sql/sql_profile.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/sql/sql_profile.cc b/sql/sql_profile.cc
index f36805012b2..b08853e54a4 100644
--- a/sql/sql_profile.cc
+++ b/sql/sql_profile.cc
@@ -125,9 +125,7 @@ int make_profile_table_for_show(THD *thd, ST_SCHEMA_TABLE *schema_table)
NullS, NullS, &field_name);
if (field)
{
- field->set_name(thd, field_info->old_name,
- (uint) strlen(field_info->old_name),
- system_charset_info);
+ field->set_name(thd, field_info->get_old_name());
if (add_item_to_list(thd, field))
return 1;
}