mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-5581: Server crashes in in JOIN::prepare on 2nd execution of PS with materialization+semijoin
- The problem was that JOIN::prepare() tried to set TABLE::maybe_null for a table in join. Non-merged semi-join tables 1) are present as join's base tables on second EXECUTE, but 2) do not yet have a TABLE object. Worked around the problem by putting mixed_implicit_grouping into JOIN object, and then passing it to JTBM tables in setup_jtbm_semi_joins().
This commit is contained in:
@ -1110,7 +1110,8 @@ public:
|
||||
*/
|
||||
JOIN *tmp_join;
|
||||
ROLLUP rollup; ///< Used with rollup
|
||||
|
||||
|
||||
bool mixed_implicit_grouping;
|
||||
bool select_distinct; ///< Set if SELECT DISTINCT
|
||||
/**
|
||||
If we have the GROUP BY statement in the query,
|
||||
|
Reference in New Issue
Block a user