Bug #5117 bug in optimizer when storage engine does not support indexes
Submitted: 20 Aug 2004 1:12 Modified: 13 Sep 2004 14:31
Reporter: Brian Aker Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S2 (Serious)
Version:4.1 OS:Linux (Linux)
Assigned to: Sergey Petrunya CPU Architecture:Any

[20 Aug 2004 1:12] Brian Aker
Description:
configure mysql to build --with-csv-storage-engine.
Run the CSV test case. You should see an error.

For some reason (which I have done some research on), the optimizer is not always doing the 
right thing when it needs to do an ORDER by on a storage engine that does not support indexes.

How to repeat:
Run CSV test case.

Suggested fix:
Look at how filesort is now handling cases where no indexes are available.
[10 Sep 2004 21:05] Sergey Petrunya
ChangeSet@1.2008, 2004-09-11 01:12:42+04:00, sergefp@mysql.com
[13 Sep 2004 14:31] Sergey Petrunya
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

ChangeSet@1.1932.149.1, 2004-09-13 06:14:25+04:00, sergefp@mysql.com