From dd028309574e5a32acc2a5309f730ba2f96262cc Mon Sep 17 00:00:00 2001 From: "konstantin@mysql.com" <> Date: Fri, 9 Sep 2005 16:23:12 +0400 Subject: [PATCH] Comment why lex->result is ignored if EXPLAIN --- sql/sql_parse.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 31582e7b2f4..5d0070667c2 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -2438,6 +2438,12 @@ mysql_execute_command(THD *thd) { if (lex->describe) { + /* + We always use select_send for EXPLAIN, even if it's an EXPLAIN + for SELECT ... INTO OUTFILE: a user application should be able + to prepend EXPLAIN to any query and receive output for it, + even if the query itself redirects the output. + */ if (!(result= new select_send())) goto error; else