[MDEV-10078] sql_yacc.yy: Remove non-parenthesized SELECT from table_factor Created: 2016-05-17 Updated: 2016-05-17 Resolved: 2016-05-17 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Parser |
| Fix Version/s: | 10.2.1 |
| Type: | Task | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
sql_yacc.yy has this grammar:
The branch in table_factor that starts with "select_derived" represents a non-parenthesized SELECT query and cannot appear in the rights side of "join_table". For example, this query is syntactically incorrect:
There must be parentheses around the right SELECT. Under term of this task we'll remove the impossible part from table_factor. |