[MDEV-20076] SHOW GRANTS does not quote role names properly Created: 2019-07-16 Updated: 2021-07-02 Resolved: 2020-02-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Authentication and Privilege System |
| Affects Version/s: | 10.3.7, 10.3.16 |
| Fix Version/s: | 10.3.23, 10.4.13 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Valerii Kravchuk | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
A role with a hyphen in a name can be created:
In the case above we see that the role name is quoted. Now if we grant this role to some user and apply SHOW GRANTS to the user:
we see that role name is not quoted. We can not just get the output of SHOW GRANTS as is as run (for example, in some script to copy grants etc):
This is inconsistent and causes problems. |
| Comments |
| Comment by Oleksandr Byelkin [ 2019-11-06 ] |
|
ommit aeb3432849e7127437128d762dbc37aa75ad06a2 (HEAD Quotes added to output. |
| Comment by Oleksandr Byelkin [ 2019-11-14 ] |
|
commit 9d2c63d45e41208495f28fcdf28c08efe919c20f (HEAD Quotes added to output. |