Commit ab5c10c1 authored by serg@serg.mylan's avatar serg@serg.mylan

after merge fix

parent eb5dfbe3
...@@ -59,6 +59,7 @@ current_user() ...@@ -59,6 +59,7 @@ current_user()
mysqltest_1@localhost mysqltest_1@localhost
show databases; show databases;
Database Database
information_schema
mysqltest_1 mysqltest_1
test test
grant all privileges on `mysqltest_1`.* to mysqltest_1@localhost with grant option; grant all privileges on `mysqltest_1`.* to mysqltest_1@localhost with grant option;
......
...@@ -267,22 +267,22 @@ drop user '%@a'@'a'; ...@@ -267,22 +267,22 @@ drop user '%@a'@'a';
# #
create user mysqltest_2@localhost; create user mysqltest_2@localhost;
grant create user on *.* to mysqltest_2@localhost; grant create user on *.* to mysqltest_2@localhost;
connect (user2,localhost,mysqltest_2,,); connect (user3,localhost,mysqltest_2,,);
connection user2; connection user3;
--error 1142 --error 1142
select host,user,password from mysql.user where user like 'mysqltest_%' order by host,user,password; select host,user,password from mysql.user where user like 'mysqltest_%' order by host,user,password;
create user mysqltest_A@'%'; create user mysqltest_A@'%';
rename user mysqltest_A@'%' to mysqltest_B@'%'; rename user mysqltest_A@'%' to mysqltest_B@'%';
drop user mysqltest_B@'%'; drop user mysqltest_B@'%';
disconnect user2; disconnect user3;
connection default; connection default;
drop user mysqltest_2@localhost; drop user mysqltest_2@localhost;
# #
# INSERT/UPDATE/DELETE is ok too # INSERT/UPDATE/DELETE is ok too
create user mysqltest_3@localhost; create user mysqltest_3@localhost;
grant INSERT,DELETE,UPDATE on mysql.* to mysqltest_3@localhost; grant INSERT,DELETE,UPDATE on mysql.* to mysqltest_3@localhost;
connect (user3,localhost,mysqltest_3,,); connect (user4,localhost,mysqltest_3,,);
connection user3; connection user4;
show grants; show grants;
--error 1142 --error 1142
select host,user,password from mysql.user where user like 'mysqltest_%' order by host,user,password; select host,user,password from mysql.user where user like 'mysqltest_%' order by host,user,password;
...@@ -290,7 +290,7 @@ insert into mysql.user set host='%', user='mysqltest_B'; ...@@ -290,7 +290,7 @@ insert into mysql.user set host='%', user='mysqltest_B';
create user mysqltest_A@'%'; create user mysqltest_A@'%';
rename user mysqltest_B@'%' to mysqltest_C@'%'; rename user mysqltest_B@'%' to mysqltest_C@'%';
drop user mysqltest_C@'%'; drop user mysqltest_C@'%';
disconnect user3; disconnect user4;
connection default; connection default;
drop user mysqltest_3@localhost; drop user mysqltest_3@localhost;
# #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment