diff options
author | Alexander Barkov <bar@mariadb.com> | 2019-06-22 09:15:37 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2019-06-24 06:25:16 +0400 |
commit | c62eaa7bdf492501c7d7155f8e69d37437f71876 (patch) | |
tree | 98627e1437a0e3110e238e5dc917df54811d26d5 /sql/sql_profile.cc | |
parent | 5e474f92b5fd2d0bae800025e6f9acacd4412d04 (diff) | |
download | mariadb-git-c62eaa7bdf492501c7d7155f8e69d37437f71876.tar.gz |
MDEV-19843 Modify ST_FIELD_INFO to use Type_handler and LEX_CSTRING
Diffstat (limited to 'sql/sql_profile.cc')
-rw-r--r-- | sql/sql_profile.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_profile.cc b/sql/sql_profile.cc index 996a7249db4..5949287ea8d 100644 --- a/sql/sql_profile.cc +++ b/sql/sql_profile.cc @@ -115,17 +115,17 @@ int make_profile_table_for_show(THD *thd, ST_SCHEMA_TABLE *schema_table) Name_resolution_context *context= &thd->lex->first_select_lex()->context; int i; - for (i= 0; schema_table->fields_info[i].field_name != NULL; i++) + for (i= 0; !schema_table->fields_info[i].end_marker(); i++) { if (! fields_include_condition_truth_values[i]) continue; field_info= &schema_table->fields_info[i]; Item_field *field= new (thd->mem_root) Item_field(thd, context, - Lex_cstring_strlen(field_info->field_name)); + field_info->name()); if (field) { - field->set_name(thd, field_info->get_old_name()); + field->set_name(thd, field_info->old_name()); if (add_item_to_list(thd, field)) return 1; } |