[MDEV-10036] sql_yacc.yy: Split select_part2 to disallow syntactically bad constructs with INTO, PROCEDURE, UNION Created: 2016-05-06 Updated: 2016-05-10 Resolved: 2016-05-10 |
|
| 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: |
|
||||||||
| Sprint: | 10.2.1-1 | ||||||||
| Description |
|
sql_yacc.yy has the following code:
This task will refactor select_part2 to disallow wrong constructs so instead of
the parser will generate "syntax error", like this:
Note, this change will not affect subselects, they will still return "Incorrect usage":
Subselect will be fixed in a separate patch. We'll do one small step at a time! |