diff options
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r-- | sql/sql_show.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc index 587d4b6ebdb..14e89fd0ef8 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -4424,8 +4424,7 @@ static int fill_schema_table_from_frm(THD *thd, TABLE_LIST *tables, goto end; } - share= get_table_share(thd, table_list.db, table_list.table_name, - GTS_TABLE | GTS_VIEW); + share= get_table_share_shortlived(thd, &table_list, GTS_TABLE | GTS_VIEW); if (!share) { res= 0; |