1
0
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:
Igor Babaev
2018-09-17 18:49:53 -07:00
parent 21f310db30
commit 5ec144cfab
3 changed files with 65 additions and 0 deletions

View File

@ -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;