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