1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-11966: Impossible to execute prepared ANALYZE SELECT

Prepare os ANALYZE now respond as EXPLAIN.
This commit is contained in:
Oleksandr Byelkin
2017-02-02 12:09:49 +01:00
committed by Sergei Golubchik
parent 32de60bb2e
commit 01c49e66b5
2 changed files with 21 additions and 1 deletions

View File

@ -1527,7 +1527,7 @@ static int mysql_test_select(Prepared_statement *stmt,
*/
if (unit->prepare(thd, 0, 0))
goto error;
if (!lex->describe && !stmt->is_sql_prepare())
if (!lex->describe && !thd->lex->analyze_stmt && !stmt->is_sql_prepare())
{
/* Make copy of item list, as change_columns may change it */
List<Item> fields(lex->select_lex.item_list);