[MDEV-20375] Unexpected error message when using an outer reference in HAVING Created: 2019-08-18 Updated: 2023-04-27 |
|
| Status: | Stalled |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Subquery |
| Affects Version/s: | 5.5, 10.1, 10.2, 10.3, 10.4, 10.5 |
| Fix Version/s: | 10.4, 10.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Igor Babaev | Assignee: | Oleksandr Byelkin |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | None | ||
| Description |
|
When the HAVING clause contains a subquery that refers to an outer field and this field is not referred to in any of upper selects the server reports an unexpected error message.
When executing the above query one gets an unexpected error message:
Compare with:
With
one still gets an improper error message:
Compare with
|
| Comments |
| Comment by Igor Babaev [ 2019-08-19 ] | ||
|
A really simple query demonstrates this problem:
|