[MDEV-32657] Dependent query cannot recognize expr in more than 1 nesting level Created: 2023-11-01 Updated: 2023-11-02 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.5, 10.6, 10.9 |
| Fix Version/s: | 10.11, 11.0, 11.1, 11.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Michael | Assignee: | Oleksandr Byelkin |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
repro: https://dbfiddle.uk/1BpvGW2V here is the same repro working for MySQL: https://dbfiddle.uk/wa8Kc48N The failing query patten is important to be supported. In complex queries, it allows to deduplicate subqueries used later more than one without having to put them in the main select. I would be grateful if it can be fixed. |
| Comments |
| Comment by Sergei Golubchik [ 2023-11-02 ] | |||||||||||||||||||||||||||||||||
|
Test case from the dbfiddle:
|