From 950dc8022e64339abc93adc6953661cf38afa530 Mon Sep 17 00:00:00 2001 From: Sergey Petrunya Date: Thu, 7 Jun 2012 21:19:22 +0400 Subject: MDEV-323: SHOW EXPLAIN: Plan produced by SHOW EXPLAIN loses 'UNION RESULT' line - Make SHOW EXPLAIN code correctly print fake_select_lex: both in the case where it has not yet been executed, and when it has been executed. --- sql/sql_union.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sql/sql_union.cc') diff --git a/sql/sql_union.cc b/sql/sql_union.cc index 021267b53bd..b0e4239e6cd 100644 --- a/sql/sql_union.cc +++ b/sql/sql_union.cc @@ -720,6 +720,8 @@ bool st_select_lex_unit::exec() } } + DBUG_EXECUTE_IF("show_explain_probe_union_read", + dbug_serve_apcs(thd, 1);); /* Send result to 'result' */ saved_error= TRUE; { -- cgit v1.2.1