mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-17211 Server crash on query
The function JOIN_TAB::choose_best_splitting() did not take into account that for some tables whose fields were used in the GROUP BY list of the specification of a splittable materialized derived there might exist no elements in the array ext_keyuses_for_splitting.
This commit is contained in:
@ -895,6 +895,8 @@ SplM_plan_info * JOIN_TAB::choose_best_splitting(double record_count,
|
||||
continue;
|
||||
JOIN_TAB *tab= join->map2table[tablenr];
|
||||
TABLE *table= tab->table;
|
||||
if (keyuse_ext->table != table)
|
||||
continue;
|
||||
do
|
||||
{
|
||||
uint key= keyuse_ext->key;
|
||||
|
Reference in New Issue
Block a user