[MDEV-25407] EXISTS subquery with correlation in ON expression crashes Created: 2021-04-13 Updated: 2021-04-20 Resolved: 2021-04-16 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.2, 10.3, 10.4, 10.5, 10.6 |
| Fix Version/s: | 10.2.38, 10.3.29, 10.4.19, 10.5.10, 10.6.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergei Petrunia | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
This is a followup to sql/item_subselect.cc has this comment in Item_subselect::walk():
This is a testcase for it:
Crashes with:
|
| Comments |
| Comment by Sergei Petrunia [ 2021-04-13 ] |
|
http://lists.askmonty.org/pipermail/commits/2021-April/014553.html |
| Comment by Sergei Petrunia [ 2021-04-13 ] |
|
The fix follows the same approach as |
| Comment by Oleksandr Byelkin [ 2021-04-16 ] |
|
OK to push |