1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

[Backport to 5.3]

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-25 00:26:40 +04:00
parent d106dc0597
commit 669c6620af
3 changed files with 54 additions and 1 deletions

View File

@@ -19091,7 +19091,7 @@ check_reverse_order:
tab->limit= best_select_limit;
}
}
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.