diff options
author | Anel Husakovic <anel@mariadb.org> | 2020-11-26 12:43:23 +0100 |
---|---|---|
committer | Anel Husakovic <anel@mariadb.org> | 2020-11-26 17:52:00 +0100 |
commit | f9bde99d0ce5f6db80ba5c8657d9e7fd2ad3d1ab (patch) | |
tree | 54d94a880c64a7f46dba9709dcdc3412e1f3b910 /sql/sql_acl.cc | |
parent | 5991bd6215054f21ec5c36fc9345ffb50f1b2d04 (diff) | |
download | mariadb-git-f9bde99d0ce5f6db80ba5c8657d9e7fd2ad3d1ab.tar.gz |
MDEV-24289: show grants missing with grant optionbb-10.2-anel-MDEV-24289-with-grant-role
Reviewed by:serg@mariadb.com
Diffstat (limited to 'sql/sql_acl.cc')
-rw-r--r-- | sql/sql_acl.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc index 641ab69c2a7..6aa53e50bae 100644 --- a/sql/sql_acl.cc +++ b/sql/sql_acl.cc @@ -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()) |