From c83018751cc8eed11279eb6df555bd66c153fa9a Mon Sep 17 00:00:00 2001 From: Alexander Barkov Date: Thu, 23 May 2019 14:57:29 +0400 Subject: MDEV-19566 Remove Item::name related strlen() calls in constructors of some Item_string descendands --- sql/sql_profile.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sql/sql_profile.cc') 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; } -- cgit v1.2.1