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