[MDEV-26080] SHOW GRANTS does not quote role names properly for DEFAULT ROLE Created: 2021-07-02 Updated: 2021-09-02 Resolved: 2021-07-09 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Server |
| Affects Version/s: | 10.2, 10.3, 10.4 |
| Fix Version/s: | 10.2.40, 10.3.31, 10.4.21, 10.5.12, 10.6.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Muhammad Irfan | Assignee: | Anel Husakovic |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Description |
|
I noticed that
If copy-pasted as-is, the last line gets a syntax error. |
| Comments |
| Comment by Anel Husakovic [ 2021-07-02 ] | ||||
|
10.2 is using ' instead of ` so we will proceed with single quotes in 10.2, while in 10.3 (commit fafb35ee517f309d9e507f6e3908caca5d8cd257 used ` and we will use them too in 10.3. I guess serg is ok with that.
| ||||
| Comment by Anel Husakovic [ 2021-07-07 ] | ||||
|
Serg can you please review | ||||
| Comment by Sergei Golubchik [ 2021-07-08 ] | ||||
|
ok. But add tests with role names including backticks and single quotes. Like
this won't be shown correctly in 10.2 (as expected, no need to fix that) but should be shown correctly in 10.3+. | ||||
| Comment by Anel Husakovic [ 2021-07-08 ] | ||||
|
Thanks serg. Updated: | ||||
| Comment by Sergei Golubchik [ 2021-07-08 ] | ||||
|
2495f06a1 and 3fbe30024ff are ok to push, thanks! | ||||
| Comment by Anel Husakovic [ 2021-07-09 ] | ||||
|
Pushed to 10.2 with d2dddbff4e6f and to 10.3 with 3fbe30024ff0b4e. |