1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00

- Testing: add DBUG_EXECUTE_IF("show_explain_probe_2"... which fires

only for selects with given select_id.
- Steps towards making SHOW EXPLAIN work for UNIONs.
This commit is contained in:
Sergey Petrunya
2011-09-25 13:05:58 +04:00
parent 203bbfe569
commit 27f760143c
6 changed files with 46 additions and 9 deletions

View File

@@ -3529,7 +3529,8 @@ void st_select_lex::set_explain_type(bool on_the_fly)
if (this == master_unit()->fake_select_lex)
type= "UNION RESULT";
options|= SELECT_DESCRIBE;
if (!on_the_fly)
options|= SELECT_DESCRIBE;
}