1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-24289: show grants missing with grant option

Reviewed by:serg@mariadb.com
This commit is contained in:
Anel Husakovic
2020-11-26 12:43:23 +01:00
parent 5991bd6215
commit 1ccd1daaff
3 changed files with 30 additions and 1 deletions

View File

@ -8945,7 +8945,8 @@ static bool show_global_privileges(THD *thd, ACL_USER_BASE *acl_entry,
if (!handle_as_role)
add_user_parameters(&global, (ACL_USER *)acl_entry, (want_access & GRANT_ACL));
else if (want_access & GRANT_ACL)
global.append(STRING_WITH_LEN(" WITH GRANT OPTION"));
protocol->prepare_for_resend();
protocol->store(global.ptr(),global.length(),global.charset());
if (protocol->write())