diff options
author | Alexander Barkov <bar@mnogosearch.org> | 2013-10-16 20:24:02 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mnogosearch.org> | 2013-10-16 20:24:02 +0400 |
commit | 70f066eba48f2d6248c9bb912fd28bc4a3091b8e (patch) | |
tree | 13a57b7db9b45fa0ad4f259e91170b5ff3a18bea /sql/sql_prepare.cc | |
parent | 3bf20bc7de3e9016b62705904933d30d2bd97fd1 (diff) | |
parent | 73f8b4dac263964482b532199151c87596f191b7 (diff) | |
download | mariadb-git-70f066eba48f2d6248c9bb912fd28bc4a3091b8e.tar.gz |
Merge 5.5 -> 10.0-base
Diffstat (limited to 'sql/sql_prepare.cc')
-rw-r--r-- | sql/sql_prepare.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc index 7a6ed21ec33..f4371624d6c 100644 --- a/sql/sql_prepare.cc +++ b/sql/sql_prepare.cc @@ -3913,6 +3913,12 @@ bool Prepared_statement::execute(String *expanded_query, bool open_cursor) error= mysql_execute_command(thd); MYSQL_QUERY_EXEC_DONE(error); } + else + { + thd->lex->sql_command= SQLCOM_SELECT; + status_var_increment(thd->status_var.com_stat[SQLCOM_SELECT]); + thd->update_stats(); + } } /* |