mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
post-commit merge
This commit is contained in:
@@ -2161,6 +2161,7 @@ int prepare_schema_table(THD *thd, LEX *lex, Table_ident *table_ident,
|
||||
case SCH_TABLES:
|
||||
case SCH_VIEWS:
|
||||
case SCH_TRIGGERS:
|
||||
case SCH_EVENTS:
|
||||
#ifdef DONT_ALLOW_SHOW_COMMANDS
|
||||
my_message(ER_NOT_ALLOWED_COMMAND,
|
||||
ER(ER_NOT_ALLOWED_COMMAND), MYF(0)); /* purecov: inspected */
|
||||
@@ -2449,11 +2450,15 @@ mysql_execute_command(THD *thd)
|
||||
if (all_tables)
|
||||
{
|
||||
if (lex->orig_sql_command != SQLCOM_SHOW_STATUS_PROC &&
|
||||
lex->orig_sql_command != SQLCOM_SHOW_STATUS_FUNC)
|
||||
lex->orig_sql_command != SQLCOM_SHOW_STATUS_FUNC &&
|
||||
lex->orig_sql_command != SQLCOM_SHOW_EVENTS)
|
||||
res= check_table_access(thd,
|
||||
lex->exchange ? SELECT_ACL | FILE_ACL :
|
||||
SELECT_ACL,
|
||||
all_tables, 0);
|
||||
else if (lex->orig_sql_command == SQLCOM_SHOW_EVENTS)
|
||||
res= check_access(thd, EVENT_ACL, thd->lex->select_lex.db, 0, 0, 0,
|
||||
is_schema_db(thd->lex->select_lex.db));
|
||||
}
|
||||
else
|
||||
res= check_access(thd,
|
||||
|
||||
Reference in New Issue
Block a user