| Bug #1560 | EXPLAIN shows wrong access type for the table | ||
|---|---|---|---|
| Submitted: | 15 Oct 2003 8:56 | Modified: | 29 Jan 2004 7:50 |
| Reporter: | Konstantin Osipov | ||
| Status: | Verified | ||
| Category: | Server: Optimizer | Severity: | S3 (Non-critical) |
| Version: | 5.1 | OS: | Any (all) |
| Assigned to: | Konstantin Osipov | Target Version: | |
[15 Oct 2003 8:56]
Konstantin Osipov
[9 Dec 2003 8:42]
Konstantin Osipov
the problem is that we change filesort to index scan in the last moment in mysql_select. Seems to be necessary to change how explain works significantly to fix the bug. Note that SQL_CALC_FOUND_ROWS now should force filesort, so proper query to spot bug should be SELECT race_name FROM races WHERE race_name LIKE'%Madison%' ORDER BY race_date DESC LIMIT 0,100;
[10 Dec 2003 21:44]
Michael Widenius
Bug is in 4.0 but becasue of the big change required to fix this we will look at fixing this in the 4.1.x series instead
[29 Jan 2004 7:50]
Konstantin Osipov
Please don't reassign this bug. We can't fix it easily, to fix it we need to redesign EXPLAIN processing.
