Bug #24420 | (a,b) IN (SELECT a,min(b) FROM t GROUP BY a) can produce wrong results | ||
---|---|---|---|
Submitted: | 18 Nov 2006 22:49 | Modified: | 7 Feb 2007 19:11 |
Reporter: | Igor Babaev | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S2 (Serious) |
Version: | OS: | ||
Assigned to: | Igor Babaev | CPU Architecture: | Any |
[18 Nov 2006 22:49]
Igor Babaev
[27 Jan 2007 1:07]
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/18891 ChangeSet@1.2391, 2007-01-26 17:10:45-08:00, igor@olga.mysql.com +3 -0 Fixed bug #24420. Objects of the classes Item_func_is_not_null_test and Item_func_trig_cond must be transparent for the method Item::split_sum_func2 as these classes are pure helpers. It means that the method Item::split_sum_func2 should look at those objects as at pure wrappers.
[3 Feb 2007 6:06]
Igor Babaev
The fix has been pushed into 5.0.36, 5.1.16-beta main trees.
[7 Feb 2007 19:11]
Paul DuBois
Noted in 5.0.36, 5.1.16 changelogs. Expressions of the form (a, b) IN (SELECT a, MIN(b) FROM t GROUP BY a) could produce incorrect results when column a of table t contains NULL values while column b does not.