[MDEV-26174] A few Reserved Words are allowed to use as Column/Table name Created: 2021-07-19 Updated: 2021-07-29 Resolved: 2021-07-29 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Parser |
| Affects Version/s: | 10.5.11 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | suresh ramagiri | Assignee: | Sergei Golubchik |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Description |
|
One of our customer noted that from the list of Reserved words - https://mariadb.com/kb/en/reserved-words/ a few of them, they can able to use it as a table name/column name. Following Reserved words - can be specified as a table/column name I found an existing bug - But, the customer pointed one case, that with the Reserved word - POSITION
If I checked with other reserved word, for both cases getting syntax error, expected behavior:
Can this be fixed. |
| Comments |
| Comment by Sergei Golubchik [ 2021-07-29 ] |
|
a non-reserved word can be freely used as an identifier anywhere. A word is called reserved if it is reserved at least in some context. It doesn't mean it is reserved in every possible context. Where a parser can unambiguously recognize it as an identifier, it can be used without quoting. |