[MDEV-20634] Report disallowed subquery errors as such (instead of parse error) Created: 2019-09-20 Updated: 2019-09-24 Resolved: 2019-09-24 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Parser |
| Fix Version/s: | 10.4.9 |
| Type: | Task | Priority: | Blocker |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
Subqueries are not allowed in a number of clauses, e.g.:
If a subquery appears in a disallowed context, a syntax error is reported:
The grammar uses remember_tok_start to remember the start position of a subquery, to use this position for error reporting:
Under terms of Let's change the error message from ER_SYNTAX_ERROR to ER_SUBQUERIES_NOT_SUPPORTED.
Rationale:
|