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:
@ -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(),
|
||||
|
Reference in New Issue
Block a user