mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
update tests
This commit is contained in:
parent
1497fc4290
commit
25d1d9c2b4
@ -1,16 +1,17 @@
|
||||
CREATE USER test_user_01999
|
||||
A
|
||||
B
|
||||
GRANT SELECT ON db1.* TO test_user_01999
|
||||
GRANT SHOW TABLES, SHOW COLUMNS, SHOW DICTIONARIES ON db2.table TO test_user_01999
|
||||
GRANT SELECT ON db1.* TO test_user_01999
|
||||
GRANT SHOW TABLES, SHOW COLUMNS, SHOW DICTIONARIES ON db2.table TO test_user_01999
|
||||
C
|
||||
GRANT SELECT(col1) ON db3.table TO test_user_01999
|
||||
GRANT SELECT(col1) ON db3.table TO test_user_01999
|
||||
D
|
||||
GRANT SELECT(col3) ON db3.table3 TO test_user_01999
|
||||
GRANT SELECT(col1, col2) ON db4.table4 TO test_user_01999
|
||||
GRANT SELECT(col3) ON db3.table3 TO test_user_01999
|
||||
GRANT SELECT(col1, col2) ON db4.table4 TO test_user_01999
|
||||
E
|
||||
GRANT SELECT(cola) ON db5.table TO test_user_01999
|
||||
GRANT INSERT(colb) ON db6.tb61 TO test_user_01999
|
||||
GRANT SHOW ON db7.* TO test_user_01999
|
||||
GRANT SELECT(cola) ON db5.table TO test_user_01999
|
||||
GRANT INSERT(colb) ON db6.tb61 TO test_user_01999
|
||||
GRANT SHOW ON db7.* TO test_user_01999
|
||||
F
|
||||
GRANT SELECT ON all.* TO test_user_01999
|
||||
GRANT SELECT ON all.* TO test_user_01999
|
||||
G
|
||||
|
@ -12,23 +12,27 @@ GRANT SHOW ON db2.table TO test_user_01999;
|
||||
SELECT 'B';
|
||||
SHOW GRANTS FOR test_user_01999;
|
||||
|
||||
GRANT BY REPLACE SELECT(col1) ON db3.table TO test_user_01999;
|
||||
REPLACE GRANT SELECT(col1) ON db3.table TO test_user_01999;
|
||||
|
||||
SELECT 'C';
|
||||
SHOW GRANTS FOR test_user_01999;
|
||||
|
||||
GRANT BY REPLACE SELECT(col3) ON db3.table3, SELECT(col1, col2) ON db4.table4 TO test_user_01999;
|
||||
REPLACE GRANT SELECT(col3) ON db3.table3, SELECT(col1, col2) ON db4.table4 TO test_user_01999;
|
||||
|
||||
SELECT 'D';
|
||||
SHOW GRANTS FOR test_user_01999;
|
||||
|
||||
GRANT BY REPLACE SELECT(cola) ON db5.table, INSERT(colb) ON db6.tb61, SHOW ON db7.* TO test_user_01999;
|
||||
REPLACE GRANT SELECT(cola) ON db5.table, INSERT(colb) ON db6.tb61, SHOW ON db7.* TO test_user_01999;
|
||||
|
||||
SELECT 'E';
|
||||
SHOW GRANTS FOR test_user_01999;
|
||||
|
||||
SELECT 'F';
|
||||
GRANT BY REPLACE SELECT ON all.* TO test_user_01999;
|
||||
REPLACE GRANT SELECT ON all.* TO test_user_01999;
|
||||
SHOW GRANTS FOR test_user_01999;
|
||||
|
||||
SELECT 'G';
|
||||
REPLACE GRANT USAGE ON *.* TO test_user_01999;
|
||||
SHOW GRANTS FOR test_user_01999;
|
||||
|
||||
DROP USER test_user_01999;
|
||||
|
Loading…
Reference in New Issue
Block a user