1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Do filesort if handler has the HA_NOT_READ_PREFIX_LAST flag set.

This commit is contained in:
monty@hundin.mysql.fi
2002-09-26 10:20:49 +03:00
parent 663b983fb7
commit a937a4fa5f
2 changed files with 5 additions and 1 deletions

View File

@@ -5577,7 +5577,7 @@ test_if_skip_sort_order(JOIN_TAB *tab,ORDER *order,ha_rows select_limit,
with key part (A) and then traverse the index backwards.
*/
if (table->file->table_flags() & HA_NOT_READ_PREFIX_LAST)
DBUG_RETURN(1);
DBUG_RETURN(0); // Use filesort
tab->read_first_record= join_read_last_key;
tab->read_record.read_record= join_read_prev_same;
/* fall through */