summaryrefslogtreecommitdiff
path: root/sql/sql_prepare.cc
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2011-08-23 19:28:32 +0400
committerSergey Petrunya <psergey@askmonty.org>2011-08-23 19:28:32 +0400
commit7e66213444a5af73879b57ad0b5bd7476b5c6f4d (patch)
tree6939d6b4b4cea99971b19fd7ad97e8096ad26ebf /sql/sql_prepare.cc
parentd2206ad14920e85907c965256e1ce061633c36ee (diff)
downloadmariadb-git-7e66213444a5af73879b57ad0b5bd7476b5c6f4d.tar.gz
MWL#182: Explain running statements
First code - "Asynchronous procedure call" system - new THD::check_killed() that serves APC request is called from within most important loops - EXPLAIN code is now able to generate EXPLAIN output on-the-fly [incomplete] Parts that are still missing: - put THD::check_killed() call into every loop where we could spend significant amount of time - Make sure EXPLAIN code works for group-by queries that replace JOIN::join_tab with make_simple_join() and other such cases. - User interface: what error code to use, where to get timeout settings from, etc.
Diffstat (limited to 'sql/sql_prepare.cc')
-rw-r--r--sql/sql_prepare.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc
index 5b5ed004006..465a026ad6e 100644
--- a/sql/sql_prepare.cc
+++ b/sql/sql_prepare.cc
@@ -2049,6 +2049,7 @@ static bool check_prepared_statement(Prepared_statement *stmt)
case SQLCOM_SHOW_ENGINE_LOGS:
case SQLCOM_SHOW_ENGINE_STATUS:
case SQLCOM_SHOW_ENGINE_MUTEX:
+ case SQLCOM_SHOW_EXPLAIN:
case SQLCOM_SHOW_CREATE_DB:
case SQLCOM_SHOW_GRANTS:
case SQLCOM_SHOW_BINLOG_EVENTS: