diff options
Diffstat (limited to 'sql/sql_explain.cc')
-rw-r--r-- | sql/sql_explain.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sql_explain.cc b/sql/sql_explain.cc index 9fadbd2e6a3..05df9a21572 100644 --- a/sql/sql_explain.cc +++ b/sql/sql_explain.cc @@ -1145,7 +1145,7 @@ void Explain_table_access::fill_key_len_str(String *key_len_str) const void Explain_index_use::set(MEM_ROOT *mem_root, KEY *key, uint key_len_arg) { - set_pseudo_key(mem_root, key->name); + set_pseudo_key(mem_root, key->name.str); key_len= key_len_arg; uint len= 0; for (uint i= 0; i < key->usable_key_parts; i++) @@ -2450,7 +2450,8 @@ int Explain_range_checked_fer::append_possible_keys_stat(MEM_ROOT *alloc, for (j= 0; j < table->s->keys; j++) { if (possible_keys.is_set(j)) - keys_stat_names[j]= key_set.append_str(alloc, table->key_info[j].name); + keys_stat_names[j]= key_set.append_str(alloc, + table->key_info[j].name.str); else keys_stat_names[j]= NULL; } |