[MDEV-11953] support of brackets (parentheses) in UNION/EXCEPT/INTERSECT operations Created: 2017-01-31 Updated: 2022-07-12 Resolved: 2018-07-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Parser |
| Fix Version/s: | 10.4.0 |
| Type: | Task | Priority: | Critical |
| Reporter: | Oleksandr Byelkin | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||
| Sprint: | 10.1.32, 10.3.6-1, 10.4.0-1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
Add suport of brackets which mean priority of operation in the parser: ((SELECT a from t1) union (SELECT b from t2)) intersect (select c from t3) |
| Comments |
| Comment by Oleksandr Byelkin [ 2017-02-06 ] |
|
The idea is for now do not touch SELECT_LEX in LEX, but make one function which "allocate" SELECT_LEX which will be aware about presence of pre-allocated SELECT_LEX. |
| Comment by Oleksandr Byelkin [ 2017-06-22 ] |
|
TODO: Need examples of pushing derived. (sql_derived.cc pushdown) |
| Comment by Oleksandr Byelkin [ 2017-06-22 ] |
|
TODO: Reursive CTE (before opening check) (According standard: UNION and left part of EXCEPT) |
| Comment by Oleksandr Byelkin [ 2018-06-05 ] |
|
Result of discussion: |