1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-5106: Server crashes in Explain_union::print_explain on ER_TOO_BIG_SELECT

- Don't save UNION's EXPLAIN data if optimization failed with 
  an error. We could end up saving incomplete plan, which will 
  cause a crash when we attempt to print it.
This commit is contained in:
Sergey Petrunya
2013-10-10 20:30:32 +04:00
parent 582ecb2a25
commit 094f70fd19
5 changed files with 30 additions and 2 deletions

View File

@@ -157,6 +157,10 @@ bool print_explain_query(LEX *lex, THD *thd, String *str)
}
/*
Return tabular EXPLAIN output as a text string
*/
bool Explain_query::print_explain_str(THD *thd, String *out_str)
{
List<Item> fields;