diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2017-02-02 12:09:49 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2019-03-12 13:10:48 +0100 |
commit | 01c49e66b559d311725ff4c0d86592c3c9eaa58d (patch) | |
tree | 64ec1b8e35440ecc8f0ffa9a93f41b69115a73a4 /sql/sql_prepare.cc | |
parent | 32de60bb2e9f06b24c76fc41bef81e35c14ca528 (diff) | |
download | mariadb-git-01c49e66b559d311725ff4c0d86592c3c9eaa58d.tar.gz |
MDEV-11966: Impossible to execute prepared ANALYZE SELECT
Prepare os ANALYZE now respond as EXPLAIN.
Diffstat (limited to 'sql/sql_prepare.cc')
-rw-r--r-- | sql/sql_prepare.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc index fd2592d8f5a..455d6b3cb86 100644 --- a/sql/sql_prepare.cc +++ b/sql/sql_prepare.cc @@ -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); |