Commit 8df57054 authored by monty@narttu.mysql.fi's avatar monty@narttu.mysql.fi

Fix for SHOW TABLE STATUS with empty .frm file

parent 20f7ea5c
...@@ -312,7 +312,7 @@ int mysqld_extend_show_tables(THD *thd,const char *db,const char *wild) ...@@ -312,7 +312,7 @@ int mysqld_extend_show_tables(THD *thd,const char *db,const char *wild)
casedn_str(file_name); casedn_str(file_name);
if (!(table = open_ltable(thd, &table_list, TL_READ))) if (!(table = open_ltable(thd, &table_list, TL_READ)))
{ {
for (uint i=0 ; i < field_list.elements ; i++) for (uint i=2 ; i < field_list.elements ; i++)
net_store_null(packet); net_store_null(packet);
net_store_data(packet,thd->net.last_error); net_store_data(packet,thd->net.last_error);
thd->net.last_error[0]=0; thd->net.last_error[0]=0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment