mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
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:
parent
2492d007d5
commit
899d0ad421
1 changed files with 2 additions and 6 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue