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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user