diff options
author | unknown <msvensson@neptunus.(none)> | 2005-12-28 14:43:50 +0100 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2005-12-28 14:43:50 +0100 |
commit | 93bedc1fc360365f8d7b199519253ca51f5944d5 (patch) | |
tree | f891877391b5a4f69beae6e995d17807b88578bc /mysql-test/r/grant2.result | |
parent | 50545a182534acd5ba25cc58ba20c74d94c408dd (diff) | |
download | mariadb-git-93bedc1fc360365f8d7b199519253ca51f5944d5.tar.gz |
Bug #15775 "drop user" command does not refresh acl_check_hosts
- Update patch for 5.0
- Added common function to be called when 'acl_users' has been modified
mysql-test/r/grant2.result:
Use "create user" to avoid warnings about missing fields
mysql-test/t/grant2.test:
Use "create user" to avoid warnings about missing fields
sql/sql_acl.cc:
Add new function "rebuild_check_host" that is to be called when the 'acl_users'
list has changed.
Call function "rebuild_check_host" from mysql_drop_user, mysql_rename_user and acl_insert_user.
Use "acl_user->host.hostname" as key when searching the acl_check_hosts in init_check_host.
Diffstat (limited to 'mysql-test/r/grant2.result')
-rw-r--r-- | mysql-test/r/grant2.result | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/mysql-test/r/grant2.result b/mysql-test/r/grant2.result index bda470832b3..246aaa3a93e 100644 --- a/mysql-test/r/grant2.result +++ b/mysql-test/r/grant2.result @@ -107,14 +107,13 @@ delete from mysql.columns_priv where user like 'mysqltest\_%'; flush privileges; drop database mysqltest; use test; -insert into mysql.user (user, host) values -('mysqltest_1', 'host1'), -('mysqltest_2', 'host2'), -('mysqltest_3', 'host3'), -('mysqltest_4', 'host4'), -('mysqltest_5', 'host5'), -('mysqltest_6', 'host6'), -('mysqltest_7', 'host7'); +create user mysqltest_1@host1; +create user mysqltest_2@host2; +create user mysqltest_3@host3; +create user mysqltest_4@host4; +create user mysqltest_5@host5; +create user mysqltest_6@host6; +create user mysqltest_7@host7; flush privileges; drop user mysqltest_3@host3; drop user mysqltest_1@host1, mysqltest_2@host2, mysqltest_4@host4, |