1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-32612 Assertion `tab->select->quick' failed in test_if_skip_sort_order

Fixup for MDEV-31983, incorrect test for checking ability to use quick select.

Approved by Sergei Petrunia
This commit is contained in:
Rex
2023-10-28 06:05:25 +12:00
parent 5b53342a6a
commit ab6139ddc0
4 changed files with 42 additions and 2 deletions

View File

@@ -24750,14 +24750,14 @@ test_if_skip_sort_order(JOIN_TAB *tab,ORDER *order,ha_rows select_limit,
tab->join->unit->
lim.get_select_limit(),
TRUE, TRUE, FALSE, FALSE);
if (res != SQL_SELECT::OK)
// if we cannot use quick select
if (res != SQL_SELECT::OK || !tab->select->quick)
{
if (res == SQL_SELECT::ERROR)
*fatal_error= true;
select->cond= save_cond;
goto use_filesort;
}
DBUG_ASSERT(tab->select->quick);
tab->type= JT_ALL;
tab->ref.key= -1;
tab->ref.key_parts= 0;