summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authormonty@mysql.com <>2005-08-15 20:12:28 +0300
committermonty@mysql.com <>2005-08-15 20:12:28 +0300
commit8589f14d450fb3d50915da2a97af7a7be48e1bb5 (patch)
tree90809e987ac321032fe995866e6a541cb92233ac /sql
parentc10f05552ff3a3566412a7f7ea42a4053abfed60 (diff)
parentc414bb15209939df14ca019b458f900704ebd80d (diff)
downloadmariadb-git-8589f14d450fb3d50915da2a97af7a7be48e1bb5.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/my/mysql-5.0
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_show.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index 397282acb56..0a76e9fb753 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -2462,6 +2462,7 @@ static int get_schema_column_record(THD *thd, struct st_table_list *tables,
table->field[5]->set_notnull();
}
else if (field->unireg_check == Field::NEXT_NUMBER ||
+ lex->orig_sql_command != SQLCOM_SHOW_FIELDS ||
field->maybe_null())
table->field[5]->set_null(); // Null as default
else