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

it shouldn't require LOCK_TABLE_ACL
This commit is contained in:
Sergei Golubchik 2013-07-10 18:58:34 +02:00
parent 2492d007d5
commit 899d0ad421

View file

@ -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: