mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-11069 main.information_schema test fails if hostname includes 'user'
Patch provided by Honza Horak
This commit is contained in:
@ -986,19 +986,19 @@ show grants;
|
|||||||
Grants for user3@localhost
|
Grants for user3@localhost
|
||||||
GRANT USAGE ON *.* TO 'user3'@'localhost'
|
GRANT USAGE ON *.* TO 'user3'@'localhost'
|
||||||
GRANT SELECT ON `mysqltest`.* TO 'user3'@'localhost'
|
GRANT SELECT ON `mysqltest`.* TO 'user3'@'localhost'
|
||||||
select * from information_schema.column_privileges where grantee like '%user%'
|
select * from information_schema.column_privileges where grantee like '\'user%'
|
||||||
order by grantee;
|
order by grantee;
|
||||||
GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME PRIVILEGE_TYPE IS_GRANTABLE
|
GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME PRIVILEGE_TYPE IS_GRANTABLE
|
||||||
'user1'@'localhost' def mysqltest t1 f1 SELECT NO
|
'user1'@'localhost' def mysqltest t1 f1 SELECT NO
|
||||||
select * from information_schema.table_privileges where grantee like '%user%'
|
select * from information_schema.table_privileges where grantee like '\'user%'
|
||||||
order by grantee;
|
order by grantee;
|
||||||
GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PRIVILEGE_TYPE IS_GRANTABLE
|
GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PRIVILEGE_TYPE IS_GRANTABLE
|
||||||
'user2'@'localhost' def mysqltest t2 SELECT NO
|
'user2'@'localhost' def mysqltest t2 SELECT NO
|
||||||
select * from information_schema.schema_privileges where grantee like '%user%'
|
select * from information_schema.schema_privileges where grantee like '\'user%'
|
||||||
order by grantee;
|
order by grantee;
|
||||||
GRANTEE TABLE_CATALOG TABLE_SCHEMA PRIVILEGE_TYPE IS_GRANTABLE
|
GRANTEE TABLE_CATALOG TABLE_SCHEMA PRIVILEGE_TYPE IS_GRANTABLE
|
||||||
'user3'@'localhost' def mysqltest SELECT NO
|
'user3'@'localhost' def mysqltest SELECT NO
|
||||||
select * from information_schema.user_privileges where grantee like '%user%'
|
select * from information_schema.user_privileges where grantee like '\'user%'
|
||||||
order by grantee;
|
order by grantee;
|
||||||
GRANTEE TABLE_CATALOG PRIVILEGE_TYPE IS_GRANTABLE
|
GRANTEE TABLE_CATALOG PRIVILEGE_TYPE IS_GRANTABLE
|
||||||
'user1'@'localhost' def USAGE NO
|
'user1'@'localhost' def USAGE NO
|
||||||
|
@ -612,13 +612,13 @@ select * from information_schema.schema_privileges order by grantee;
|
|||||||
select * from information_schema.user_privileges order by grantee;
|
select * from information_schema.user_privileges order by grantee;
|
||||||
show grants;
|
show grants;
|
||||||
connection con4;
|
connection con4;
|
||||||
select * from information_schema.column_privileges where grantee like '%user%'
|
select * from information_schema.column_privileges where grantee like '\'user%'
|
||||||
order by grantee;
|
order by grantee;
|
||||||
select * from information_schema.table_privileges where grantee like '%user%'
|
select * from information_schema.table_privileges where grantee like '\'user%'
|
||||||
order by grantee;
|
order by grantee;
|
||||||
select * from information_schema.schema_privileges where grantee like '%user%'
|
select * from information_schema.schema_privileges where grantee like '\'user%'
|
||||||
order by grantee;
|
order by grantee;
|
||||||
select * from information_schema.user_privileges where grantee like '%user%'
|
select * from information_schema.user_privileges where grantee like '\'user%'
|
||||||
order by grantee;
|
order by grantee;
|
||||||
show grants;
|
show grants;
|
||||||
connection default;
|
connection default;
|
||||||
|
Reference in New Issue
Block a user