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

make JOIN::prepare, JOIN::optimize only once for EXPLAIN of derived table

(BUG#2120 sfter merge)
This commit is contained in:
bell@sanja.is.com.ua
2004-02-01 20:07:44 +02:00
parent bd259f54c9
commit f9af8578bc
6 changed files with 47 additions and 16 deletions

View File

@ -62,6 +62,15 @@ mysql_handle_derived(LEX *lex)
return 1;
}
}
if (lex->describe)
{
/*
Force join->join_tmp creation, because we will use this JOIN
twice for EXPLAIN and we have to have unchanged join for EXPLAINing
*/
sl->uncacheable|= UNCACHEABLE_EXPLAIN;
sl->master_unit()->uncacheable|= UNCACHEABLE_EXPLAIN;
}
}
}
return 0;