Bug #23478 | Incorrect query result for index_subquery-based IN subquery | ||
---|---|---|---|
Submitted: | 19 Oct 2006 19:55 | Modified: | 28 Nov 2006 19:59 |
Reporter: | Sergey Petrunya | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S2 (Serious) |
Version: | 4.1/5.0/5.1BK | OS: | Linux (Linux) |
Assigned to: | Igor Babaev | CPU Architecture: | Any |
Tags: | IN, index_subquery, subquery, subselect |
[19 Oct 2006 19:55]
Sergey Petrunya
[19 Oct 2006 19:56]
Sergey Petrunya
Initial analysis: index-lookup based execution engine may produce incorrect result when oe IS NOT NULL, and SELECT produces a set without matching value and a NULL. It seems that some flag is not being reset.
[20 Oct 2006 6:05]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/14028 ChangeSet@1.2532, 2006-10-19 23:02:11-07:00, igor@rurik.mysql.com +2 -0 Fixed bug #23478. If elements a not top-level IN subquery were accessed by an index and the subquery result set included a NULL value then the quantified predicate that contained the subquery was evaluated to NULL when it should return a non-null value.
[20 Oct 2006 6:06]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/14029 ChangeSet@1.2532, 2006-10-19 23:05:53-07:00, igor@rurik.mysql.com +3 -0 Fixed bug #23478. If elements a not top-level IN subquery were accessed by an index and the subquery result set included a NULL value then the quantified predicate that contained the subquery was evaluated to NULL when it should return a non-null value.
[27 Nov 2006 17:11]
Georgi Kodinov
Pushed in 4.1.23/5.0.32/5.1.14-beta
[28 Nov 2006 19:59]
Paul DuBois
Noted in 4.1.23, 5.0.32, 5.1.14 changelogs.