[MDEV-6337] Wrong result (extra row) with TEMPTABLE view and impossible condition Created: 2014-06-12 Updated: 2022-12-02 Resolved: 2022-12-01 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 5.5.38, 10.0.11, 5.3.13 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Elena Stepanova | Assignee: | Sergei Petrunia |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Description |
|
The problem appeared in 5.3 tree with the following revision:
Test case:
Expected result: empty set
On 5.3, the impossible condition pk2 < pk2 can be replaced with 0, the problem still exists. on 5.5, the wrong result disappears after that. Reproducible on 5.3 of revno 3788, 5.5 of revno 4216, 10.0 revno 4241 |
| Comments |
| Comment by Daniel Black [ 2015-11-13 ] | ||||||||||||||||||||||||||
|
couldn't reproduce on 10.1.9(125cf485b16f14b9da6acc8d55de8ab7b26ad967)
| ||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2016-02-12 ] | ||||||||||||||||||||||||||
|
The problem disappeared after this commit:
psergey, would you expect this kind of bug to be fixed by this commit, or did the problem just got hidden? The EXPLAIN is the same before and after the fix, warnings differ:
| ||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2016-02-15 ] | ||||||||||||||||||||||||||
|
As discussed, I'm keeping it open so that some day Sergei could check if it's a legal side-effect of the patch. |