diff options
author | Sergey Glukhov <Sergey.Glukhov@sun.com> | 2010-01-22 14:58:21 +0400 |
---|---|---|
committer | Sergey Glukhov <Sergey.Glukhov@sun.com> | 2010-01-22 14:58:21 +0400 |
commit | 4a10f7b46c9ebbd9af89f37f64df40981459b788 (patch) | |
tree | bac6a09c84cadfa7b79089a66ed4c224e0a0e3c5 /sql/sql_parse.cc | |
parent | f42a200e9e1e535dcf647237fcb4ccb65c04965d (diff) | |
download | mariadb-git-4a10f7b46c9ebbd9af89f37f64df40981459b788.tar.gz |
Bug#49501 Inefficient information_schema check (system collation), addon
removed wrongly introduced strlen calls
sql/events.cc:
removed wrongly introduced strlen calls
sql/mysql_priv.h:
removed wrongly introduced strlen calls
sql/repl_failsafe.cc:
removed wrongly introduced strlen calls
sql/sql_db.cc:
removed wrongly introduced strlen calls
sql/sql_parse.cc:
removed wrongly introduced strlen calls
sql/sql_show.cc:
removed wrongly introduced strlen calls
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r-- | sql/sql_parse.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 3c404a984bf..a2a1494141c 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -2852,7 +2852,7 @@ end_with_restore_list: &first_table->grant.privilege, 0, 0, test(first_table->schema_table)) || check_access(thd,INSERT_ACL | CREATE_ACL,select_lex->db,&priv,0,0, - is_schema_db(select_lex->db, strlen(select_lex->db)))|| + is_schema_db(select_lex->db))|| check_merge_table_access(thd, first_table->db, (TABLE_LIST *) create_info.merge_list.first)) @@ -3865,7 +3865,7 @@ end_with_restore_list: first_table ? 0 : 1, 0, first_table ? (bool) first_table->schema_table : select_lex->db ? - is_schema_db(select_lex->db, strlen(select_lex->db)) : 0)) + is_schema_db(select_lex->db) : 0)) goto error; if (thd->security_ctx->user) // If not replication @@ -5304,7 +5304,7 @@ static bool check_show_access(THD *thd, TABLE_LIST *table) if (check_access(thd, SELECT_ACL, dst_db_name, &thd->col_access, FALSE, FALSE, - is_schema_db(dst_db_name, strlen(dst_db_name)))) + is_schema_db(dst_db_name))) return TRUE; if (!thd->col_access && check_grant_db(thd, dst_db_name)) |