diff options
author | Sergei Golubchik <serg@mariadb.org> | 2017-12-16 21:33:43 +0100 |
---|---|---|
committer | Aleksey Midenkov <midenok@gmail.com> | 2017-12-19 16:35:38 +0300 |
commit | 617e108fb6e2bc24e5c9badb94e7d8eaa65d8851 (patch) | |
tree | b7c0bc622483a2abd3b642e194609da625e8d52d /sql/sql_truncate.cc | |
parent | ee68d019d1e059fa0fcf9e63bd97176dd46582c2 (diff) | |
download | mariadb-git-617e108fb6e2bc24e5c9badb94e7d8eaa65d8851.tar.gz |
s/TRUNCATE ... TO/DELETE HISTORY FROM ... BEFORE/
Diffstat (limited to 'sql/sql_truncate.cc')
-rw-r--r-- | sql/sql_truncate.cc | 7 |
1 files changed, 0 insertions, 7 deletions
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); |