summaryrefslogtreecommitdiff
path: root/sql/sp_head.cc
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2005-12-03 15:02:09 +0100
committerunknown <serg@serg.mylan>2005-12-03 15:02:09 +0100
commitda8b9967a85ba2cbc96c144695ad9bed7e6aad53 (patch)
tree164169a3bb780c4b9e284ff34f5dc99cdc7bf6dc /sql/sp_head.cc
parent33b58ea123fa474c8ab6c73cea1ac6bd37671587 (diff)
downloadmariadb-git-da8b9967a85ba2cbc96c144695ad9bed7e6aad53.tar.gz
this has nothing to do with the bug#13012.
it's about mysql_admin_commands not being reexecution-safe (and CHECK still isn't) mysql-test/r/sp-error.result: optimize is now allowed in SP mysql-test/r/sp.result: test repair/optimize/analyze in SP mysql-test/t/backup.test: clean up after itself mysql-test/t/sp-error.test: optimize is now allowed in SP mysql-test/t/sp.test: test repair/optimize/analyze in SP sql/sp_head.cc: all mysql_admin commands return result set sql/sql_parse.cc: all mysql_admin commands modify table list and we should restore it for SP sql/sql_table.cc: optimization - don't execute views when no view is expected/allowed sql/sql_yacc.yy: optimize is now allowed in SP
Diffstat (limited to 'sql/sp_head.cc')
-rw-r--r--sql/sp_head.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sp_head.cc b/sql/sp_head.cc
index 13d503dfa28..a0a4e0a462f 100644
--- a/sql/sp_head.cc
+++ b/sql/sp_head.cc
@@ -72,7 +72,11 @@ sp_get_flags_for_command(LEX *lex)
}
/* fallthrough */
case SQLCOM_ANALYZE:
+ case SQLCOM_OPTIMIZE:
+ case SQLCOM_PRELOAD_KEYS:
+ case SQLCOM_ASSIGN_TO_KEYCACHE:
case SQLCOM_CHECKSUM:
+ case SQLCOM_CHECK:
case SQLCOM_HA_READ:
case SQLCOM_SHOW_BINLOGS:
case SQLCOM_SHOW_BINLOG_EVENTS: