Bug #21180 | Subselect with index for both WHERE and ORDER BY produces empty result | ||
---|---|---|---|
Submitted: | 20 Jul 2006 14:00 | Modified: | 25 Sep 2006 17:54 |
Reporter: | Svetoslav Naidenov | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S2 (Serious) |
Version: | 5.0.22/4.1/5.0/5.1BK | OS: | Linux (linux and windows) |
Assigned to: | Georgi Kodinov | CPU Architecture: | Any |
[20 Jul 2006 14:00]
Svetoslav Naidenov
[20 Jul 2006 16:35]
MySQL Verification Team
Thank you for the bug report.
[3 Aug 2006 16:20]
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/10017 ChangeSet@1.2532, 2006-08-03 19:20:30+03:00, gkodinov@macbook.gmz +4 -0 Bug #21180: Subselect with index for both WHERE and ORDER BY produces empty result Reseting subqueries with "quick" access methods was incomplete. Partially backported the correct reseting of QUICK_SELECTs from 5.x.
[15 Sep 2006 16:02]
Georgi Kodinov
I've partially back-ported the 5.0 code. In 5.0 this was fixed by the fix for either BUG#21077 or BUG#20869.
[19 Sep 2006 8:28]
Georgi Kodinov
Pushed into 4.1.22/5.0.26/5.1.12-beta
[25 Sep 2006 17:54]
Paul DuBois
Noted in 4.1.22, 5.0.26, 5.1.12 changelogs. A subquery that uses an index for both the WHERE and ORDER BY clauses produced an empty result.