1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-9755: Buildbot shows a crash in JOIN::make_aggr_tables_info()

Don't attempt to do query pushdown when all tables have been optimized
away (tables_list=NULL)>
This commit is contained in:
Sergei Petrunia
2016-03-17 22:17:09 +03:00
parent 6533bd1b74
commit c5537c042a

View File

@ -2117,7 +2117,8 @@ bool JOIN::make_aggr_tables_info()
group by handler to evaluate the group by
*/
group_by_handler *gbh= NULL;
if ((tmp_table_param.sum_func_count || group_list) && !procedure)
if (tables_list && (tmp_table_param.sum_func_count || group_list) &&
!procedure)
{
/*
At the moment we only support push down for queries where