diff options
author | Sergei Petrunia <psergey@askmonty.org> | 2014-10-12 20:48:07 +0400 |
---|---|---|
committer | Sergei Petrunia <psergey@askmonty.org> | 2014-10-12 20:48:07 +0400 |
commit | fec5ab5a56cb9a45c621207620cc85079cddf537 (patch) | |
tree | 3db33493c57db3b0acfdd2fe18e4eab7a9f960fd /sql/sql_insert.cc | |
parent | 5c33632b50ab37641b2b0a60729ffda3dbeac31c (diff) | |
download | mariadb-git-fec5ab5a56cb9a45c621207620cc85079cddf537.tar.gz |
MDEV-6396: ANALYZE INSERT/REPLACE is accepted, but does not produce a plan
Add ANALYZE STMT handling into INSERT command.
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r-- | sql/sql_insert.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index 8b01acb2a87..2b68f7766ac 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -1100,6 +1100,11 @@ bool mysql_insert(THD *thd,TABLE_LIST *table_list, if (error) goto abort; + if (thd->lex->analyze_stmt) + { + retval= thd->lex->explain->send_explain(thd); + goto abort; + } if (values_list.elements == 1 && (!(thd->variables.option_bits & OPTION_WARNINGS) || !thd->cuted_fields)) { |