From 617e108fb6e2bc24e5c9badb94e7d8eaa65d8851 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Sat, 16 Dec 2017 21:33:43 +0100 Subject: s/TRUNCATE ... TO/DELETE HISTORY FROM ... BEFORE/ --- sql/sql_truncate.cc | 7 ------- 1 file changed, 7 deletions(-) (limited to 'sql/sql_truncate.cc') diff --git a/sql/sql_truncate.cc b/sql/sql_truncate.cc index 9286143e259..bd3f1fdc111 100644 --- a/sql/sql_truncate.cc +++ b/sql/sql_truncate.cc @@ -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); -- cgit v1.2.1