Commit 7bdc4c4f authored by unknown's avatar unknown

incorrect fix undone, as it causes memory leaks (e.g. in key.test)

parent 14ede384
......@@ -7200,6 +7200,7 @@ create_sort_index(THD *thd, JOIN *join, ORDER *order,
table->sort.found_records=filesort(thd, table,sortorder, length,
select, filesort_limit, &examined_rows);
tab->records=table->sort.found_records; // For SQL_CALC_ROWS
delete select;
tab->select=0;
tab->select_cond=0;
tab->type=JT_ALL; // Read with normal read_record
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment