Do filesort if handler has the HA_NOT_READ_PREFIX_LAST flag set.

mysys/my_symlink.c:
  More debug info
This commit is contained in:
unknown 2002-09-26 10:20:49 +03:00
commit 54ad43bd6e
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 */