diff options
author | unknown <gluh@eagle.intranet.mysql.r18.ru> | 2005-05-31 13:15:23 +0500 |
---|---|---|
committer | unknown <gluh@eagle.intranet.mysql.r18.ru> | 2005-05-31 13:15:23 +0500 |
commit | 97cef22b84e6a7b89b1ea5113c88b4601fc0696a (patch) | |
tree | 3258dac0fe26e44550ad2650158193db2cba6431 /sql/sql_show.cc | |
parent | d8cec2abf3867ed87e083b11d468266cc484fe70 (diff) | |
download | mariadb-git-97cef22b84e6a7b89b1ea5113c88b4601fc0696a.tar.gz |
Fix for bug#10059: SHOW TABLE STATUS FROM `information_schema`; reports uppercase table names
information schema table names are always upper case table names
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r-- | sql/sql_show.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc index c873b9be369..32ad85b88f7 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -396,7 +396,8 @@ mysqld_show_create(THD *thd, TABLE_LIST *table_list) else { if (table_list->schema_table) - protocol->store(table_list->schema_table_name, system_charset_info); + protocol->store(table_list->schema_table->table_name, + system_charset_info); else protocol->store(table->alias, system_charset_info); if (store_create_info(thd, table_list, &buffer)) @@ -757,7 +758,7 @@ store_create_info(THD *thd, TABLE_LIST *table_list, String *packet) else packet->append("CREATE TABLE ", 13); if (table_list->schema_table) - alias= table_list->schema_table_name; + alias= table_list->schema_table->table_name; else alias= (lower_case_table_names == 2 ? table->alias : share->table_name); |