mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-22019: Sig 11 in next_breadth_first_tab | max_sort_length setting + double GROUP BY leads to crash
No need to create a temp table for aggregation if we have encountered some error.
This commit is contained in:
@ -2210,8 +2210,12 @@ JOIN::optimize_inner()
|
||||
having_is_correlated= MY_TEST(having->used_tables() & OUTER_REF_TABLE_BIT);
|
||||
tmp_having= having;
|
||||
|
||||
if ((select_lex->options & OPTION_SCHEMA_TABLE))
|
||||
optimize_schema_tables_reads(this);
|
||||
if ((select_lex->options & OPTION_SCHEMA_TABLE) &&
|
||||
optimize_schema_tables_reads(this))
|
||||
DBUG_RETURN(TRUE);
|
||||
|
||||
if (unlikely(thd->is_error()))
|
||||
DBUG_RETURN(TRUE);
|
||||
|
||||
/*
|
||||
The loose index scan access method guarantees that all grouping or
|
||||
|
Reference in New Issue
Block a user