diff options
author | unknown <serg@serg.mylan> | 2006-01-06 18:26:59 +0100 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2006-01-06 18:26:59 +0100 |
commit | e931d813e175630e102bc7b8b60ba4d399c283dd (patch) | |
tree | afd96a443a293b4718156b7bc9f07c5d45fc01b6 /sql/sql_acl.cc | |
parent | 9af5f7f9414603a8db61ef310f26b68ef04a8764 (diff) | |
parent | f3915a41647978a71aedb209a28f8b61f1dd4cd5 (diff) | |
download | mariadb-git-e931d813e175630e102bc7b8b60ba4d399c283dd.tar.gz |
merged
sql/field.cc:
Auto merged
sql/item.cc:
Auto merged
sql/log_event.cc:
Auto merged
sql/opt_range.cc:
Auto merged
sql/sql_acl.cc:
Auto merged
sql/sql_insert.cc:
Auto merged
sql/sql_parse.cc:
Auto merged
sql/sql_handler.cc:
ur
Diffstat (limited to 'sql/sql_acl.cc')
-rw-r--r-- | sql/sql_acl.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc index 5d03524f531..57ed943e66a 100644 --- a/sql/sql_acl.cc +++ b/sql/sql_acl.cc @@ -2244,14 +2244,14 @@ static GRANT_NAME *name_hash_search(HASH *name_hash, char helping [NAME_LEN*2+USERNAME_LENGTH+3]; uint len; GRANT_NAME *grant_name,*found=0; + HASH_SEARCH_STATE state; len = (uint) (strmov(strmov(strmov(helping,user)+1,db)+1,tname)-helping)+ 1; - for (grant_name=(GRANT_NAME*) hash_search(name_hash, - (byte*) helping, - len) ; + for (grant_name= (GRANT_NAME*) hash_first(name_hash, (byte*) helping, + len, &state); grant_name ; grant_name= (GRANT_NAME*) hash_next(name_hash,(byte*) helping, - len)) + len, &state)) { if (exact) { @@ -3553,7 +3553,7 @@ bool check_grant(THD *thd, ulong want_access, TABLE_LIST *tables, of other queries). For simple queries first_not_own_table is 0. */ for (i= 0, table= tables; - table && table != first_not_own_table && i < number; + table != first_not_own_table && i < number; table= table->next_global, i++) { /* Remove SHOW_VIEW_ACL, because it will be checked during making view */ |