diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2018-09-02 09:24:33 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2018-09-02 09:24:33 +0400 |
commit | 63ad6a9e1a33ddd5547767b2894e09ae66196f69 (patch) | |
tree | 046cba04ab96a8bc29086a9aba1b59588b0b6e01 /sql/sql_truncate.cc | |
parent | 288212f489c8cd88c4cc98f8aecc3366c85a90be (diff) | |
download | mariadb-git-63ad6a9e1a33ddd5547767b2894e09ae66196f69.tar.gz |
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.
Diffstat (limited to 'sql/sql_truncate.cc')
-rw-r--r-- | sql/sql_truncate.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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(), |