diff options
author | gluh@mysql.com/eagle.(none) <> | 2007-11-30 18:48:22 +0400 |
---|---|---|
committer | gluh@mysql.com/eagle.(none) <> | 2007-11-30 18:48:22 +0400 |
commit | b0ca5127789b05ebcb506c25d74a98070c1d92c6 (patch) | |
tree | 9fe6cf2ef16a15517abc0820b5b91d8347a126f2 /sql/events.cc | |
parent | 1b3e95e1da526441abdd54b411ecb1a470f8bd9f (diff) | |
download | mariadb-git-b0ca5127789b05ebcb506c25d74a98070c1d92c6.tar.gz |
Bug#32775 problems with SHOW EVENTS and Information_Schema
removed unnecessary privilege checks for I_S schema
Diffstat (limited to 'sql/events.cc')
-rw-r--r-- | sql/events.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/events.cc b/sql/events.cc index 262c62bdbc8..4579fb4d086 100644 --- a/sql/events.cc +++ b/sql/events.cc @@ -825,8 +825,8 @@ Events::fill_schema_events(THD *thd, TABLE_LIST *tables, COND * /* cond */) if (thd->lex->sql_command == SQLCOM_SHOW_EVENTS) { DBUG_ASSERT(thd->lex->select_lex.db); - if (check_access(thd, EVENT_ACL, thd->lex->select_lex.db, 0, 0, 0, - is_schema_db(thd->lex->select_lex.db))) + if (!is_schema_db(thd->lex->select_lex.db) && // There is no events in I_S + check_access(thd, EVENT_ACL, thd->lex->select_lex.db, 0, 0, 0, 0)) DBUG_RETURN(1); db= thd->lex->select_lex.db; } |