diff options
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r-- | sql/sql_parse.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 21590f743a5..9cca8c8fa58 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -24,6 +24,10 @@ #include <my_dir.h> #include <assert.h> +#ifdef HAVE_INNOBASE_DB +#include "ha_innobase.h" +#endif + #define SCRAMBLE_LENGTH 8 @@ -1232,6 +1236,15 @@ mysql_execute_command(void) res = show_binlog_info(thd); break; } +#ifdef HAVE_INNOBASE_DB + case SQLCOM_SHOW_INNODB_STATUS: + { + if (check_process_priv(thd)) + goto error; + res = innodb_show_status(thd); + break; + } +#endif case SQLCOM_LOAD_MASTER_TABLE: if (!tables->db) |