Lines Matching refs:lex_user

6871 static int show_routine_grants(THD *thd, LEX_USER *lex_user, HASH *hash,
6883 bool mysql_show_grants(THD *thd,LEX_USER *lex_user) in mysql_show_grants() argument
6904 acl_user= find_acl_user(lex_user->host.str, lex_user->user.str, TRUE); in mysql_show_grants()
6911 lex_user->user.str, lex_user->host.str); in mysql_show_grants()
6918 strxmov(buff,"Grants for ",lex_user->user.str,"@", in mysql_show_grants()
6919 lex_user->host.str,NullS); in mysql_show_grants()
6958 global.append(lex_user->user.str, lex_user->user.length, in mysql_show_grants()
6961 global.append(lex_user->host.str,lex_user->host.length, in mysql_show_grants()
7076 if (!strcmp(lex_user->user.str,user) && in mysql_show_grants()
7077 !my_strcasecmp(system_charset_info, lex_user->host.str, host)) in mysql_show_grants()
7108 db.append(lex_user->user.str, lex_user->user.length, in mysql_show_grants()
7146 if (!strcmp(lex_user->user.str,user) && in mysql_show_grants()
7147 !my_strcasecmp(system_charset_info, lex_user->host.str, host)) in mysql_show_grants()
7223 global.append(lex_user->user.str, lex_user->user.length, in mysql_show_grants()
7242 if (show_routine_grants(thd, lex_user, &proc_priv_hash, in mysql_show_grants()
7249 if (show_routine_grants(thd, lex_user, &func_priv_hash, in mysql_show_grants()
7256 if (show_proxy_grants(thd, lex_user, buff, sizeof(buff))) in mysql_show_grants()
7270 static int show_routine_grants(THD* thd, LEX_USER *lex_user, HASH *hash, in show_routine_grants() argument
7295 if (!strcmp(lex_user->user.str,user) && in show_routine_grants()
7296 !my_strcasecmp(system_charset_info, lex_user->host.str, host)) in show_routine_grants()
7335 global.append(lex_user->user.str, lex_user->user.length, in show_routine_grants()
8771 LEX_USER *lex_user, *tmp_lex_user; in mysql_revoke_all() local
8778 if (!(lex_user= get_current_user(thd, tmp_lex_user))) in mysql_revoke_all()
8783 if (!find_acl_user(lex_user->host.str, lex_user->user.str, TRUE)) in mysql_revoke_all()
8790 lex_user, ~(ulong) 0, 1, 0, 0)) in mysql_revoke_all()
8814 if (!strcmp(lex_user->user.str,user) && in mysql_revoke_all()
8815 !strcmp(lex_user->host.str, host)) in mysql_revoke_all()
8817 if (!replace_db_table(tables[1].table, acl_db->db, *lex_user, in mysql_revoke_all()
8847 if (!strcmp(lex_user->user.str,user) && in mysql_revoke_all()
8848 !strcmp(lex_user->host.str, host)) in mysql_revoke_all()
8850 if (replace_table_table(thd,grant_table,tables[2].table,*lex_user, in mysql_revoke_all()
8866 if (!replace_column_table(grant_table,tables[3].table, *lex_user, in mysql_revoke_all()
8895 if (!strcmp(lex_user->user.str,user) && in mysql_revoke_all()
8896 !strcmp(lex_user->host.str, host)) in mysql_revoke_all()
8898 if (replace_routine_table(thd,grant_proc,tables[4].table,*lex_user, in mysql_revoke_all()
9073 LEX_USER lex_user; in sp_revoke_privileges() local
9074 lex_user.user.str= grant_proc->user; in sp_revoke_privileges()
9075 lex_user.user.length= strlen(grant_proc->user); in sp_revoke_privileges()
9076 lex_user.host.str= (char*) (grant_proc->host.get_host() ? in sp_revoke_privileges()
9078 lex_user.host.length= grant_proc->host.get_host() ? in sp_revoke_privileges()
9081 if (replace_routine_table(thd,grant_proc,tables[4].table,lex_user, in sp_revoke_privileges()