Fix priv bugs

This commit is contained in:
wjhh2008
2024-01-11 09:13:26 +00:00
committed by ob-robot
parent 925737c4e6
commit 12d2a86c92
3 changed files with 20 additions and 1 deletions

View File

@ -1491,6 +1491,8 @@ int get_revoke_stmt_need_privs(
stmt->get_database_name(),
stmt->get_table_name()))) {
LOG_WARN("Can not grant information_schema database", K(ret));
} else if (lib::is_mysql_mode() && stmt->get_revoke_all()) {
//check privs at resolver
} else {
need_priv.db_ = stmt->get_database_name();
need_priv.table_ = stmt->get_table_name();