diff options
author | unknown <gluh@mysql.com/eagle.(none)> | 2007-11-30 18:48:22 +0400 |
---|---|---|
committer | unknown <gluh@mysql.com/eagle.(none)> | 2007-11-30 18:48:22 +0400 |
commit | ff7e7fcb6794d243b8324c3a76359a9c5ac68710 (patch) | |
tree | 9fe6cf2ef16a15517abc0820b5b91d8347a126f2 /sql/sql_parse.cc | |
parent | f4a7464f1e259840216de264b246568ea2694109 (diff) | |
download | mariadb-git-ff7e7fcb6794d243b8324c3a76359a9c5ac68710.tar.gz |
Bug#32775 problems with SHOW EVENTS and Information_Schema
removed unnecessary privilege checks for I_S schema
mysql-test/r/information_schema.result:
test result
mysql-test/t/information_schema.test:
test case
sql/events.cc:
There is no events in I_S so we don't need to execute check_access here.
sql/sql_parse.cc:
removed unnecessary check
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r-- | sql/sql_parse.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 9f510f9b33c..7a777ba2bbd 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -1855,10 +1855,6 @@ mysql_execute_command(THD *thd) switch (lex->sql_command) { case SQLCOM_SHOW_EVENTS: - if ((res= check_access(thd, EVENT_ACL, thd->lex->select_lex.db, 0, 0, 0, - is_schema_db(thd->lex->select_lex.db)))) - break; - /* fall through */ case SQLCOM_SHOW_STATUS_PROC: case SQLCOM_SHOW_STATUS_FUNC: res= execute_sqlcom_select(thd, all_tables); |