-
Notifications
You must be signed in to change notification settings - Fork 753
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
optimize(query): first check privilege in SystemEngine get_full_data
- Loading branch information
Showing
7 changed files
with
279 additions
and
43 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
tests/suites/0_stateless/18_rbac/18_0013_column_privilege.result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
=== show grants for a === | ||
SELECT default USER a GRANT SELECT ON 'default'.'default'.* TO 'a'@'%' | ||
SELECT default.grant_db.t USER a GRANT SELECT ON 'default'.'grant_db'.'t' TO 'a'@'%' | ||
=== show databases === | ||
default | ||
grant_db | ||
information_schema | ||
system | ||
=== show tables === | ||
Error: APIError: ResponseError with 1063: Permission denied: User 'a'@'%' does not have the required privileges for database 'system' | ||
t | ||
=== use db === | ||
Error: APIError: ResponseError with 1063: Permission denied: User 'a'@'%' does not have the required privileges for database 'system' | ||
=== show columns === | ||
dummy TINYINT UNSIGNED NO NULL NULL | ||
c1 INT NO NULL NULL | ||
created_on TIMESTAMP NO NULL NULL | ||
inherited_roles BIGINT UNSIGNED NO NULL NULL | ||
inherited_roles_name VARCHAR NO NULL NULL | ||
name VARCHAR NO NULL NULL | ||
update_on TIMESTAMP NO NULL NULL | ||
keywords VARCHAR NO NULL NULL | ||
reserved TINYINT UNSIGNED NO NULL NULL | ||
Error: APIError: ResponseError with 1063: Permission denied: User 'a'@'%' does not have the required privileges for database 'nogrant' | ||
Error: APIError: ResponseError with 1063: Permission denied: User 'a'@'%' does not have the required privileges for table 'nogrant.t' | ||
1 | ||
0 |
Oops, something went wrong.