From 899d0ad421654583d0ba1fdc4c7485bc2bc0b083 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Wed, 10 Jul 2013 18:58:34 +0200 Subject: [PATCH] fix status.test - don't use lock_tables_precheck() for SHOW PROC STATUS, it shouldn't require LOCK_TABLE_ACL --- sql/sql_parse.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index a982949c05d..d1b149065b2 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -2422,12 +2422,6 @@ mysql_execute_command(THD *thd) my_error(ER_NOT_SUPPORTED_YET, MYF(0), "embedded server"); break; #endif - case SQLCOM_SHOW_STATUS_PROC: - case SQLCOM_SHOW_STATUS_FUNC: - if (lock_tables_precheck(thd, all_tables)) - goto error; - res= execute_sqlcom_select(thd, all_tables); - break; case SQLCOM_SHOW_STATUS: { execute_show_status(thd, all_tables); @@ -2460,6 +2454,8 @@ mysql_execute_command(THD *thd) } /* no break; fall through */ } + case SQLCOM_SHOW_STATUS_PROC: + case SQLCOM_SHOW_STATUS_FUNC: case SQLCOM_SHOW_DATABASES: case SQLCOM_SHOW_TABLES: case SQLCOM_SHOW_TRIGGERS: