Commit 899d0ad4 authored by Sergei Golubchik's avatar Sergei Golubchik

fix status.test - don't use lock_tables_precheck() for SHOW PROC STATUS,

it shouldn't require LOCK_TABLE_ACL
parent 2492d007
...@@ -2422,12 +2422,6 @@ mysql_execute_command(THD *thd) ...@@ -2422,12 +2422,6 @@ mysql_execute_command(THD *thd)
my_error(ER_NOT_SUPPORTED_YET, MYF(0), "embedded server"); my_error(ER_NOT_SUPPORTED_YET, MYF(0), "embedded server");
break; break;
#endif #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: case SQLCOM_SHOW_STATUS:
{ {
execute_show_status(thd, all_tables); execute_show_status(thd, all_tables);
...@@ -2460,6 +2454,8 @@ mysql_execute_command(THD *thd) ...@@ -2460,6 +2454,8 @@ mysql_execute_command(THD *thd)
} }
/* no break; fall through */ /* no break; fall through */
} }
case SQLCOM_SHOW_STATUS_PROC:
case SQLCOM_SHOW_STATUS_FUNC:
case SQLCOM_SHOW_DATABASES: case SQLCOM_SHOW_DATABASES:
case SQLCOM_SHOW_TABLES: case SQLCOM_SHOW_TABLES:
case SQLCOM_SHOW_TRIGGERS: case SQLCOM_SHOW_TRIGGERS:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment