summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2022-05-05 10:11:03 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2022-05-05 10:11:03 +0200
commitbee3e96da35a5811b6815c4299d87352d2bde95c (patch)
treeef653c89c2e5eec157bfaa6b98f47d5eef2a6b23
parent157e66273b83119fe4837693899b2b2ef84de02c (diff)
downloadmariadb-git-bee3e96da35a5811b6815c4299d87352d2bde95c.tar.gz
5.7.38
-rw-r--r--storage/perfschema/pfs_engine_table.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/storage/perfschema/pfs_engine_table.cc b/storage/perfschema/pfs_engine_table.cc
index 232f427dd4d..dd380879fdb 100644
--- a/storage/perfschema/pfs_engine_table.cc
+++ b/storage/perfschema/pfs_engine_table.cc
@@ -862,7 +862,8 @@ static bool allow_drop_table_privilege() {
assert(thd->lex != NULL);
if ((thd->lex->sql_command != SQLCOM_TRUNCATE) &&
- (thd->lex->sql_command != SQLCOM_GRANT)) {
+ (thd->lex->sql_command != SQLCOM_GRANT) &&
+ (thd->lex->sql_command != SQLCOM_REVOKE)) {
return false;
}