1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-430: Server crashes in select_describe on EXPLAIN with materialization+semijoin, etc

- Don't do early cleanup of uncorrelated subqueries if we're running an EXPLAIN.
This commit is contained in:
Sergey Petrunya
2012-08-28 15:15:05 +04:00
parent 0af0e7a70a
commit 2d99ea454f
7 changed files with 95 additions and 11 deletions

View File

@ -10543,7 +10543,7 @@ void JOIN::join_free()
Optimization: if not EXPLAIN and we are done with the JOIN,
free all tables.
*/
bool full= !(select_lex->uncacheable);
bool full= !(select_lex->uncacheable) && !(thd->lex->describe);
bool can_unlock= full;
DBUG_ENTER("JOIN::join_free");