summaryrefslogtreecommitdiff
path: root/sql/sql_truncate.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2017-12-14 20:18:53 +0100
committerSergei Golubchik <serg@mariadb.org>2017-12-14 20:19:20 +0100
commit84e14bff4a7c99524f82b0133382ce389c6d80d8 (patch)
treebb8dca9c481740c3db0329b9de76d7f403c3934c /sql/sql_truncate.cc
parent18405e5fd994c37698c6fbf0996ecc9e7d1af0f2 (diff)
downloadmariadb-git-84e14bff4a7c99524f82b0133382ce389c6d80d8.tar.gz
privilege: s/delete versioning rows/delete history/
Diffstat (limited to 'sql/sql_truncate.cc')
-rw-r--r--sql/sql_truncate.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_truncate.cc b/sql/sql_truncate.cc
index 27e405cd6b9..9286143e259 100644
--- a/sql/sql_truncate.cc
+++ b/sql/sql_truncate.cc
@@ -498,7 +498,7 @@ bool Sql_cmd_truncate_table::execute(THD *thd)
if (table->vers_conditions)
{
- if (check_one_table_access(thd, DELETE_VERSIONING_ROWS_ACL, table))
+ if (check_one_table_access(thd, DELETE_HISTORY_ACL, table))
DBUG_RETURN(res);
DBUG_RETURN(mysql_delete(thd, table, NULL, NULL, -1, 0, NULL));
}