[MDEV-2137] LP:1010351 - New "via" keyword in 5.2+ can't be used as identifier anymore Created: 2012-06-08 Updated: 2012-10-04 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Hartmut Holzgraefe | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
The new VIA keyword used for "... IDENTIFIED VIA <plugin> ..." can't be used as table or column name anymore although there should be no ambiguities about whether it is meant as a keyword or as an identifier in any context. Looks as it was simply overlooked to add it to the "keyword:" list in sql_yacc.cc? Adding it there does not procude any additional bison conflicts: === modified file 'sql/sql_yacc.yy'
Adding it to the keyword_sp: list, too (for keywords that may be used as stored procedure labels) makes bison unhappy though |
| Comments |
| Comment by Hartmut Holzgraefe [ 2012-06-08 ] |
|
Re: New "via" keyword in 5.2+ can't be used as identifier anymore |
| Comment by Hartmut Holzgraefe [ 2012-06-08 ] |
|
unmangled patch |
| Comment by Sergei Petrunia [ 2012-06-08 ] |
|
Re: New "via" keyword in 5.2+ can't be used as identifier anymore The problem is that keyword includes keyword_sp: keyword: if one adds the same token to both keyword and keyword_sp, they will get reduce/reduce conflicts because bison will not know whether to reduce the token to 'keyword' directly or go through 'keyword_sp'. I've tried adding VIA_SYM just to keyword_sp, and it worked. |
| Comment by Sergei Petrunia [ 2012-06-08 ] |
|
Re: New "via" keyword in 5.2+ can't be used as identifier anymore |
| Comment by Rasmus Johansson (Inactive) [ 2012-06-10 ] |
|
Launchpad bug id: 1010351 |