[MDEV-10444] parser error in grant statement for roles Created: 2016-07-26 Updated: 2016-08-08 Resolved: 2016-08-08 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Documentation |
| Affects Version/s: | 10.1.16 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Peter Mclarty | Assignee: | Ian Gilfillan |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Redhat Linux 6.7 |
||
| Description |
|
There is a simple parser bug in the grant function when granting database privileges to a role
to
This breaks the grant
|
| Comments |
| Comment by Sergei Golubchik [ 2016-07-26 ] | ||||||||||||||||||||||||||||||||||||||||||
|
What exactly is broken? What do you think the behavior should be? As you can see from error messages and from the show grants output, you've granted access to the table *. This is a valid table name:
An asterisk without backtick-quotes is not a valid table name, and in the GRANT statement it means a wildcard all tables. | ||||||||||||||||||||||||||||||||||||||||||
| Comment by Peter Mclarty [ 2016-07-26 ] | ||||||||||||||||||||||||||||||||||||||||||
|
Ok then perhaps the fact that a table name of * needs to be pointed out in the documentation, I would not have considered * as a valid table name, however on rereading and reading the linked pages I see I missed valuable information.
The connection going away, in this case, isn't a database issue just a connectivity issue with this database. Happy to close this as I now understand what I missed in the documentation, it will likely be missed by others where quoted object names are so heavily frowned upon in other databases that historically such cases show up so little. This jira might help others | ||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2016-07-27 ] | ||||||||||||||||||||||||||||||||||||||||||
|
greenman, see above. It seems to be a documentation issue. | ||||||||||||||||||||||||||||||||||||||||||
| Comment by Ian Gilfillan [ 2016-08-08 ] | ||||||||||||||||||||||||||||||||||||||||||
|
https://mariadb.com/kb/en/mariadb/identifier-names/ gives the permitted range of unicode characters for identifiers. There are lots of seemingly-strange characters that are permitted when quoting - I've added an example with`*` at the bottom. |