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

Make SHOW EXPLAIN give a separate timeout error.

This commit is contained in:
Sergey Petrunya
2012-05-16 20:22:54 +04:00
parent 533e1d2845
commit 483ae4bf81

View File

@ -2121,9 +2121,18 @@ void mysqld_show_explain(THD *thd, ulong thread_id)
if (bres || explain_req.failed_to_produce)
{
/* TODO not enabled or time out */
my_error(ER_ERROR_WHEN_EXECUTING_COMMAND, MYF(0),
"SHOW EXPLAIN",
"Target is not running EXPLAINable command");
if (timed_out)
{
my_error(ER_ERROR_WHEN_EXECUTING_COMMAND, MYF(0),
"SHOW EXPLAIN",
"Timeout");
}
else
{
my_error(ER_ERROR_WHEN_EXECUTING_COMMAND, MYF(0),
"SHOW EXPLAIN",
"Target is not running EXPLAINable command");
}
bres= TRUE;
}
else