-
Notifications
You must be signed in to change notification settings - Fork 761
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: system.tables table visibility (#17202)
```sql create user a identified by '123' with default_role='a'; create role a; create database a; grant ownership on a.* to role a; grant role a to a; create table a.b(id int); create role b; grant ownership on a.b to role b; -- login with user a -- this query should return right result select name, owner from system.tables where database = 'a'and name = 'b' ```
- Loading branch information
Showing
3 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,3 +66,5 @@ system | |
2 | ||
3 | ||
4 | ||
=== test system.tables === | ||
b b |
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