From 20f7ea5c7ad36ee3ed228e6992a00f4e5ce7a140 Mon Sep 17 00:00:00 2001 From: "monty@narttu.mysql.fi" <> Date: Wed, 26 Feb 2003 09:52:19 +0200 Subject: [PATCH 1/2] Comment column in SHOW TABLE STATUS now reports that it can contain NULL values (which is the case for a crashed .frm file). --- sql/sql_show.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/sql/sql_show.cc b/sql/sql_show.cc index 729e1557cdc..15693035a82 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -293,6 +293,7 @@ int mysqld_extend_show_tables(THD *thd,const char *db,const char *wild) field_list.push_back(item=new Item_empty_string("Create_options",255)); item->maybe_null=1; field_list.push_back(item=new Item_empty_string("Comment",80)); + item->maybe_null=1; if (send_fields(thd,field_list,1)) DBUG_RETURN(1); From 8df5705434776761a02c1bfd257730191da3d85b Mon Sep 17 00:00:00 2001 From: "monty@narttu.mysql.fi" <> Date: Wed, 26 Feb 2003 10:16:50 +0200 Subject: [PATCH 2/2] Fix for SHOW TABLE STATUS with empty .frm file --- sql/sql_show.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/sql_show.cc b/sql/sql_show.cc index 15693035a82..585c30110b3 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -312,7 +312,7 @@ int mysqld_extend_show_tables(THD *thd,const char *db,const char *wild) casedn_str(file_name); 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_data(packet,thd->net.last_error); thd->net.last_error[0]=0;