mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-15890 Strange error message if you try to FLUSH TABLES <view> after LOCK TABLES <view>.
Check if the argument of the FLUSH TABLE is a VIEW and handle it accordingly.
This commit is contained in:
@ -2070,7 +2070,7 @@ bool mysql_rm_table(THD *thd,TABLE_LIST *tables, my_bool if_exists,
|
||||
in its elements.
|
||||
*/
|
||||
table->table= find_table_for_mdl_upgrade(thd, table->db,
|
||||
table->table_name, false);
|
||||
table->table_name, NULL);
|
||||
if (!table->table)
|
||||
DBUG_RETURN(true);
|
||||
table->mdl_request.ticket= table->table->mdl_ticket;
|
||||
|
Reference in New Issue
Block a user