[MDEV-4996] Wrong result (missing rows) with impossible condition in NOT IN subquery Created: 2013-09-05 Updated: 2013-09-09 Resolved: 2013-09-09 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.4, 5.5.32, 5.3.12 |
| Fix Version/s: | 5.5.33a, 10.0.6, 5.3.13 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Elena Stepanova | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
The first test case returns 1 row on 5.3, 5.5, 10.0, and two rows on 5.2, MySQL 5.5, MySQL 5.6. Two rows is the correct result.
Actual result:
Expected result:
The second test case is a variation of the first one, only instead of the constant '0' condition we use IN subquery from a constant (empty) table. This test case returns the correct result on 5.3, but fails on 5.5.
5.3 result:
5.5 result:
|
| Comments |
| Comment by Igor Babaev [ 2013-09-09 ] |
|
The fix for the bug was pushed into the 5.3 tree and merged into the 5.5 tree. |