1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-5337: Wrong result in mariadb 5.5.32 with ORDER BY + LIMIT when index_condition_pushdown=on

- in test_if_skip_sort_order(), correct the condition under which
  we have the code that restores the previously pushed index condition.
This commit is contained in:
Sergey Petrunya
2014-01-24 23:40:48 +04:00
parent eb88c905e6
commit e1f94a6985
3 changed files with 54 additions and 1 deletions

View File

@ -19477,7 +19477,7 @@ check_reverse_order:
table->disable_keyread();
}
}
else if (tab->type != JT_ALL)
else if (tab->type != JT_ALL || tab->select->quick)
{
/*
We're about to use a quick access to the table.