summaryrefslogtreecommitdiff
path: root/sql/sql_profile.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_profile.cc')
-rw-r--r--sql/sql_profile.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sql_profile.cc b/sql/sql_profile.cc
index f3b62991c5c..7206162792a 100644
--- a/sql/sql_profile.cc
+++ b/sql/sql_profile.cc
@@ -120,8 +120,10 @@ int make_profile_table_for_show(THD *thd, ST_SCHEMA_TABLE *schema_table)
continue;
field_info= &schema_table->fields_info[i];
+ LEX_CSTRING field_name= {field_info->field_name,
+ strlen(field_info->field_name) };
Item_field *field= new (thd->mem_root) Item_field(thd, context,
- NullS, NullS, field_info->field_name);
+ NullS, NullS, &field_name);
if (field)
{
field->set_name(thd, field_info->old_name,