summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <monty@narttu.mysql.fi>2003-02-26 10:16:50 +0200
committerunknown <monty@narttu.mysql.fi>2003-02-26 10:16:50 +0200
commit23a850e5a641f8b124e700916911e22d2cdd06de (patch)
treefa5d1ff81128826e1687558a1465a61f4a2a9ced
parent85d6d3d8ec6c49b1770ad6ca9cb5fc5b82e21aa3 (diff)
downloadmariadb-git-23a850e5a641f8b124e700916911e22d2cdd06de.tar.gz
Fix for SHOW TABLE STATUS with empty .frm file
-rw-r--r--sql/sql_show.cc2
1 files changed, 1 insertions, 1 deletions
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;