File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
tests/sqllogictests/suites/base/05_ddl Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,40 @@ GRANT SELECT ON db01.tbnotexists TO 'test-grant'@'localhost'
4646statement error 1003
4747GRANT SELECT ON dbnotexists.* TO 'test-grant'@'localhost'
4848
49+ onlyif mysql
50+ query T
51+ select current_user()
52+ ----
53+ 'root'@'127.0.0.1'
54+
55+ onlyif mysql
56+ statement ok
57+ set role 'public';
58+
59+ onlyif mysql
60+ query T
61+ select current_role()
62+ ----
63+ public
64+
65+ onlyif mysql
66+ query T
67+ show roles
68+ ----
69+ account_admin 0 0 1
70+ public 0 1 0
71+
72+ query T
73+ show grants for role 'public'
74+ ----
75+ GRANT SELECT ON 'default'.'system'.'one' TO 'public'
76+
77+ query T
78+ show grants for role 'account_admin'
79+ ----
80+ GRANT ALL ON *.* TO 'account_admin'
81+ GRANT SELECT ON 'default'.'system'.'one' TO 'account_admin'
82+
4983query T
5084SHOW GRANTS FOR 'test-grant'@'localhost'
5185----
You can’t perform that action at this time.
0 commit comments