mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 09:14:17 +01:00
Fix grant5.test with view protocol
This commit is contained in:
parent
44804c667e
commit
7038382e1b
2 changed files with 6 additions and 6 deletions
|
@ -174,7 +174,7 @@ drop user 'O\'Brien'@'localhost';
|
||||||
#
|
#
|
||||||
CREATE USER 'test-user';
|
CREATE USER 'test-user';
|
||||||
CREATE ROLE `r``o'l"e`;
|
CREATE ROLE `r``o'l"e`;
|
||||||
select user from mysql.user where is_role='Y';
|
select user as User from mysql.user where is_role='Y';
|
||||||
User
|
User
|
||||||
r`o'l"e
|
r`o'l"e
|
||||||
GRANT `r``o'l"e` TO 'test-user';
|
GRANT `r``o'l"e` TO 'test-user';
|
||||||
|
@ -346,7 +346,7 @@ ERROR HY000: Password hash should be a 41-digit hexadecimal number
|
||||||
set password for u7@h = old_password('pwd');
|
set password for u7@h = old_password('pwd');
|
||||||
create user u8@h identified with 'mysql_old_password';
|
create user u8@h identified with 'mysql_old_password';
|
||||||
set password for u8@h = '78a302dd267f6044';
|
set password for u8@h = '78a302dd267f6044';
|
||||||
select user,host,plugin,authentication_string from mysql.user where host='h';
|
select user as User,host as Host,plugin,authentication_string from mysql.user where host='h';
|
||||||
User Host plugin authentication_string
|
User Host plugin authentication_string
|
||||||
u1 h mysql_native_password *975B2CD4FF9AE554FE8AD33168FBFC326D2021DD
|
u1 h mysql_native_password *975B2CD4FF9AE554FE8AD33168FBFC326D2021DD
|
||||||
u2 h mysql_native_password *975B2CD4FF9AE554FE8AD33168FBFC326D2021DD
|
u2 h mysql_native_password *975B2CD4FF9AE554FE8AD33168FBFC326D2021DD
|
||||||
|
@ -392,7 +392,7 @@ grant select on *.* to u5@h;
|
||||||
grant select on *.* to u6@h;
|
grant select on *.* to u6@h;
|
||||||
grant select on *.* to u7@h;
|
grant select on *.* to u7@h;
|
||||||
grant select on *.* to u8@h;
|
grant select on *.* to u8@h;
|
||||||
select user,select_priv,plugin,authentication_string from mysql.user where user like 'u_';
|
select user as User,select_priv as Select_priv,plugin,authentication_string from mysql.user where user like 'u_';
|
||||||
User Select_priv plugin authentication_string
|
User Select_priv plugin authentication_string
|
||||||
u1 Y mysql_native_password bad
|
u1 Y mysql_native_password bad
|
||||||
u2 Y mysql_native_password *975B2CD4FF9AE554FE8AD33168FBFC326D2021DD
|
u2 Y mysql_native_password *975B2CD4FF9AE554FE8AD33168FBFC326D2021DD
|
||||||
|
|
|
@ -131,7 +131,7 @@ drop user 'O\'Brien'@'localhost';
|
||||||
|
|
||||||
CREATE USER 'test-user';
|
CREATE USER 'test-user';
|
||||||
CREATE ROLE `r``o'l"e`;
|
CREATE ROLE `r``o'l"e`;
|
||||||
select user from mysql.user where is_role='Y';
|
select user as User from mysql.user where is_role='Y';
|
||||||
GRANT `r``o'l"e` TO 'test-user';
|
GRANT `r``o'l"e` TO 'test-user';
|
||||||
SET DEFAULT ROLE `r``o'l"e` FOR 'test-user';
|
SET DEFAULT ROLE `r``o'l"e` FOR 'test-user';
|
||||||
# it is expected that quotes won't be shown correctly
|
# it is expected that quotes won't be shown correctly
|
||||||
|
@ -310,7 +310,7 @@ set password for u7@h = old_password('pwd');
|
||||||
create user u8@h identified with 'mysql_old_password';
|
create user u8@h identified with 'mysql_old_password';
|
||||||
eval set password for u8@h = '$p';
|
eval set password for u8@h = '$p';
|
||||||
sorted_result;
|
sorted_result;
|
||||||
select user,host,plugin,authentication_string from mysql.user where host='h';
|
select user as User,host as Host,plugin,authentication_string from mysql.user where host='h';
|
||||||
# test with invalid entries
|
# test with invalid entries
|
||||||
update mysql.global_priv set priv=json_set(priv, '$.authentication_string', 'bad') where user='u1';
|
update mysql.global_priv set priv=json_set(priv, '$.authentication_string', 'bad') where user='u1';
|
||||||
update mysql.global_priv set priv=json_set(priv, '$.authentication_string', 'bad') where user='u5';
|
update mysql.global_priv set priv=json_set(priv, '$.authentication_string', 'bad') where user='u5';
|
||||||
|
@ -332,7 +332,7 @@ grant select on *.* to u5@h;
|
||||||
grant select on *.* to u6@h;
|
grant select on *.* to u6@h;
|
||||||
grant select on *.* to u7@h;
|
grant select on *.* to u7@h;
|
||||||
grant select on *.* to u8@h;
|
grant select on *.* to u8@h;
|
||||||
select user,select_priv,plugin,authentication_string from mysql.user where user like 'u_';
|
select user as User,select_priv as Select_priv,plugin,authentication_string from mysql.user where user like 'u_';
|
||||||
|
|
||||||
# but they still can be dropped
|
# but they still can be dropped
|
||||||
drop user u1@h, u2@h, u3@h, u4@h, u5@h, u6@h, u7@h, u8@h;
|
drop user u1@h, u2@h, u3@h, u4@h, u5@h, u6@h, u7@h, u8@h;
|
||||||
|
|
Loading…
Add table
Reference in a new issue