[MDEV-12402] CTE with correlated subquery does not recognize column names from outer tables Created: 2017-03-29 Updated: 2017-03-30 Resolved: 2017-03-30 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer - CTE |
| Affects Version/s: | 10.2 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Elena Stepanova | Assignee: | Igor Babaev |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||
| Description |
|
I don't know if it is supposed to work; if it is not, please feel free to close as not a bug.
The example is oversimplified and probably does not make much sense, it's just meant to demonstrate the problem, but I guess there might more realistic cases affected by it. |
| Comments |
| Comment by Igor Babaev [ 2017-03-30 ] |
|
See my comment. |
| Comment by Igor Babaev [ 2017-03-30 ] |
|
Elena, CTEs are like derived tables: they do not allow outer references. So it's not a bug, It's rather a limitation of our derived tables. |