diff options
author | unknown <konstantin@mysql.com> | 2005-09-09 16:23:12 +0400 |
---|---|---|
committer | unknown <konstantin@mysql.com> | 2005-09-09 16:23:12 +0400 |
commit | 42a433853fa28c7f81618f441c88215261b19f24 (patch) | |
tree | 39f02dd188f971bddacc34a7068db4e8c309af08 | |
parent | 708553e0693c678ad32e5f5793a8e28823cc5627 (diff) | |
download | mariadb-git-42a433853fa28c7f81618f441c88215261b19f24.tar.gz |
Comment why lex->result is ignored if EXPLAIN
-rw-r--r-- | sql/sql_parse.cc | 6 |
1 files changed, 6 insertions, 0 deletions
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 |