1
0
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:
Sergei Golubchik
2017-12-16 21:33:43 +01:00
committed by Aleksey Midenkov
parent ee68d019d1
commit 617e108fb6
7 changed files with 59 additions and 49 deletions

View File

@ -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);