summaryrefslogtreecommitdiff
path: root/sql/sql_show.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2017-11-15 21:39:30 +0800
committerSergei Golubchik <serg@mariadb.org>2017-11-22 12:52:16 +0100
commit3422ceb10cba9e5ab122ebb15478b199963fcc48 (patch)
tree8c4b3993d336e97bc25cdfba7998066b71539c07 /sql/sql_show.cc
parentf86413ecc128c262747099ef63e2a4c0b1d14db9 (diff)
downloadmariadb-git-3422ceb10cba9e5ab122ebb15478b199963fcc48.tar.gz
remove dead code
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r--sql/sql_show.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index c7ba6705cb0..de9d7d77dc8 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -5096,10 +5096,11 @@ static int get_schema_tables_record(THD *thd, TABLE_LIST *tables,
if (share->tmp_table == SYSTEM_TMP_TABLE)
table->field[3]->store(STRING_WITH_LEN("SYSTEM VIEW"), cs);
- else if (share->tmp_table)
- table->field[3]->store(STRING_WITH_LEN("LOCAL TEMPORARY"), cs);
else
+ {
+ DBUG_ASSERT(share->tmp_table == NO_TMP_TABLE);
table->field[3]->store(STRING_WITH_LEN("BASE TABLE"), cs);
+ }
for (int i= 4; i < 20; i++)
{