From 63ad6a9e1a33ddd5547767b2894e09ae66196f69 Mon Sep 17 00:00:00 2001 From: Alexey Botchkov Date: Sun, 2 Sep 2018 09:24:33 +0400 Subject: MDEV-15890 Strange error message if you try to FLUSH TABLES after LOCK TABLES . Check if the argument of the FLUSH TABLE is a VIEW and handle it accordingly. --- sql/sql_truncate.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/sql_truncate.cc') diff --git a/sql/sql_truncate.cc b/sql/sql_truncate.cc index 9a54b4f947f..57cb6df55ca 100644 --- a/sql/sql_truncate.cc +++ b/sql/sql_truncate.cc @@ -302,7 +302,7 @@ bool Sql_cmd_truncate_table::lock_table(THD *thd, TABLE_LIST *table_ref, if (thd->locked_tables_mode) { if (!(table= find_table_for_mdl_upgrade(thd, table_ref->db, - table_ref->table_name, FALSE))) + table_ref->table_name, NULL))) DBUG_RETURN(TRUE); *hton_can_recreate= ha_check_storage_engine_flag(table->s->db_type(), -- cgit v1.2.1