[MDEV-23829] confusing error message for SET ROLE INVALID Created: 2020-09-28 Updated: 2020-12-02 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Authentication and Privilege System |
| Affects Version/s: | 10.2.34 |
| Fix Version/s: | 10.2 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Daniel Black | Assignee: | Oleksandr Byelkin |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| Description |
|
|
| Comments |
| Comment by Sergei Golubchik [ 2020-09-28 ] |
|
danblack, check the content of @current_role variable in your dump. Your SELECT doesn't do what you think it should. |
| Comment by Daniel Black [ 2020-09-28 ] |
|
Doh. Thanks. |
| Comment by Daniel Black [ 2020-12-01 ] |
|
Attached is a patch that results in a SYNTAX ERROR rather than a unknown system variable. It feels like I'm doing something ugly in the parser however. |
| Comment by Sergei Golubchik [ 2020-12-01 ] |
|
No, please don't. Unknown role is not a syntax error. |
| Comment by Daniel Black [ 2020-12-02 ] |
|
well it was 'SET ROLE' is a syntax error without a role specified. Same with the other partial syntaxes. The `EXECUTE IMMEDIATE 'SET ROLE '` was ending down the variable path in the parser without it. |