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