[MDEV-24288] SHOW GRANTS output doesn't show the GRANT OPTION if ROLE is created with it. Created: 2020-11-26  Updated: 2020-11-26  Resolved: 2020-11-26

Status: Closed
Project: MariaDB Server
Component/s: Authentication and Privilege System
Affects Version/s: 10.3, 10.4
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Nilnandan Joshi Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates MDEV-24289 show grants missing with grant Closed

 Description   

SHOW GRANTS output doesn't show the GRANT OPTION if ROLE is created with it.

MariaDB [(none)]> CREATE ROLE DB_Admin;
Query OK, 0 rows affected (0.000 sec)
 
MariaDB [(none)]> GRANT SELECT, UPDATE, DELETE, ALTER ON *.* TO 'DB_Admin' WITH GRANT OPTION;
Query OK, 0 rows affected (0.001 sec)
 
MariaDB [(none)]> SHOW GRANTS for 'DB_Admin';
+---------------------------------------------------------------+
| Grants for MariaDB_admin                                      |
+---------------------------------------------------------------+
| GRANT SELECT, UPDATE, DELETE, ALTER ON *.* TO `MariaDB_admin` |
+---------------------------------------------------------------+
1 row in set (0.000 sec)


Generated at Thu Feb 08 09:28:51 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.