[MDEV-19956] Queries with subqueries containing UNION are not parsed Created: 2019-07-05 Updated: 2019-10-04 Resolved: 2019-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Parser |
| Affects Version/s: | 10.4 |
| Fix Version/s: | 10.4.9, 10.5.0 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Igor Babaev | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Description |
|
The following query
returns syntax error message in 10.4:
Reprodicible in with the following test case
10.3 and probably all prior versions return the same error message.
This query with a subquery in the WHERE clause also failed to be parsed:
10.3 returns the same error message. MySQL-8.0 is ok with the above query:
|
| Comments |
| Comment by Igor Babaev [ 2019-09-24 ] |
|
A fix for this bug was pushed into 10.4. |
| Comment by Marko Mäkelä [ 2019-10-04 ] |
|
igor, please check my follow-up fix and consider whether s2->next_select() could ever hold in LEX::parsed_select_expr_cont(). |