mirror of
https://github.com/MariaDB/server.git
synced 2025-07-16 00:42:55 +03:00
s/TRUNCATE ... TO/DELETE HISTORY FROM ... BEFORE/
This commit is contained in:
committed by
Aleksey Midenkov
parent
ee68d019d1
commit
617e108fb6
@ -496,13 +496,6 @@ bool Sql_cmd_truncate_table::execute(THD *thd)
|
||||
TABLE_LIST *table= thd->lex->select_lex.table_list.first;
|
||||
DBUG_ENTER("Sql_cmd_truncate_table::execute");
|
||||
|
||||
if (table->vers_conditions)
|
||||
{
|
||||
if (check_one_table_access(thd, DELETE_HISTORY_ACL, table))
|
||||
DBUG_RETURN(res);
|
||||
DBUG_RETURN(mysql_delete(thd, table, NULL, NULL, -1, 0, NULL));
|
||||
}
|
||||
|
||||
if (check_one_table_access(thd, DROP_ACL, table))
|
||||
DBUG_RETURN(res);
|
||||
|
||||
|
Reference in New Issue
Block a user