[MDEV-5401] Wrong result (missing row) on a 2nd execution of PS with exists_to_in=on, MERGE view or a SELECT SQ Created: 2013-12-06 Updated: 2014-04-10 Resolved: 2014-04-10 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.6 |
| Fix Version/s: | 10.0.11 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||
| Description |
|
Test case:
Results:
Also reproducible with a subquery instead of the view. |
| Comments |
| Comment by Oleksandr Byelkin [ 2014-03-19 ] |
|
Materialization used to execute IN (got from exists). |
| Comment by Oleksandr Byelkin [ 2014-03-19 ] |
|
It is correct explain: |
| Comment by Oleksandr Byelkin [ 2014-03-20 ] |
|
The problem is in rolling back changes after we changed equations in WHERE with constants to remove it. ( (1=1) turns to (1=t1.a)) |
| Comment by Oleksandr Byelkin [ 2014-03-20 ] |
|
it is sent for review |