summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Kosov <claprix@yandex.ru>2021-07-19 16:30:27 +0300
committerEugene Kosov <claprix@yandex.ru>2021-07-19 16:30:27 +0300
commit2916a7e7425f9bab7e58969938d0f8b00de237d2 (patch)
tree21e3e4d5c56a65235cf9a101819e9127e1461242
parentddad20c63be0a3725e6b349a15a03eae82b2d381 (diff)
downloadmariadb-git-2916a7e7425f9bab7e58969938d0f8b00de237d2.tar.gz
fix clang build
-rw-r--r--sql/sql_table.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index b182401e3db..7f6fa541640 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -2241,7 +2241,7 @@ int mysql_rm_table_no_locks(THD *thd, TABLE_LIST *tables, bool if_exists,
bool trans_tmp_table_deleted= 0, non_trans_tmp_table_deleted= 0;
bool non_tmp_table_deleted= 0;
bool is_drop_tmp_if_exists_added= 0;
- bool was_view= 0, was_table= 0, log_if_exists= if_exists;
+ bool was_view= 0, log_if_exists= if_exists;
const char *object_to_drop= (drop_sequence) ? "SEQUENCE" : "TABLE";
String normal_tables;
String built_trans_tmp_query, built_non_trans_tmp_query;
@@ -2467,7 +2467,6 @@ int mysql_rm_table_no_locks(THD *thd, TABLE_LIST *tables, bool if_exists,
. "DROP SEQUENCE", but it's not a sequence
*/
wrong_drop_sequence= drop_sequence && hton;
- was_table|= wrong_drop_sequence;
error= table_type == TABLE_TYPE_UNKNOWN ? ENOENT : -1;
tdc_remove_table(thd, db.str, table_name.str);
}