1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Comment why lex->result is ignored if EXPLAIN

This commit is contained in:
unknown
2005-09-09 16:23:12 +04:00
parent 708553e069
commit 42a433853f

View File

@ -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