-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
67625: sql: GRANT/REVOKE treat names case insensitively r=RichardJCai a=rafiss fixes #65556 Release note (bug fix): Previously the GRANT and REVOKE commands would incorrectly handle role names. CockroachDB treats role names as case insensitive, but these commands were incorrectly handling the names. Now, GRANT and REVOKE normalize the names and are case-insensitive. 67821: sql: removed pg_stat exclusion for pg_catalog r=rafiss a=mnovelodou Previously, we excluded pg_stat* tables from difftool This was inadequate because we were unable to add missing empty tables To address this, this patch removes the exclusion Release note: None Co-authored-by: Rafi Shamim <[email protected]> Co-authored-by: MiguelNovelo <[email protected]>
- Loading branch information
Showing
8 changed files
with
2,951 additions
and
154 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
parse | ||
GRANT roLea,rOleB TO rOLeC WITH ADMIN OPTION | ||
---- | ||
GRANT rolea, roleb TO rolec WITH ADMIN OPTION -- normalized! | ||
GRANT rolea, roleb TO rolec WITH ADMIN OPTION -- fully parenthesized | ||
GRANT rolea, roleb TO rolec WITH ADMIN OPTION -- literals removed | ||
GRANT _, _ TO _ WITH ADMIN OPTION -- identifiers removed | ||
|
||
parse | ||
GRANT roLea TO roLeB WITH ADMIN OPTION | ||
---- | ||
GRANT rolea TO roleb WITH ADMIN OPTION -- normalized! | ||
GRANT rolea TO roleb WITH ADMIN OPTION -- fully parenthesized | ||
GRANT rolea TO roleb WITH ADMIN OPTION -- literals removed | ||
GRANT _ TO _ WITH ADMIN OPTION -- identifiers removed | ||
|
||
parse | ||
GRANT ALL ON TABLE the_table TO rolEC | ||
---- | ||
GRANT ALL ON TABLE the_table TO rolec -- normalized! | ||
GRANT ALL ON TABLE (the_table) TO rolec -- fully parenthesized | ||
GRANT ALL ON TABLE the_table TO rolec -- literals removed | ||
GRANT ALL ON TABLE _ TO _ -- identifiers removed | ||
|
||
parse | ||
REVOKE roleA, roleB FROM RoleC | ||
---- | ||
REVOKE rolea, roleb FROM rolec -- normalized! | ||
REVOKE rolea, roleb FROM rolec -- fully parenthesized | ||
REVOKE rolea, roleb FROM rolec -- literals removed | ||
REVOKE _, _ FROM _ -- identifiers removed | ||
|
||
parse | ||
REVOKE roleA FROM roleB | ||
---- | ||
REVOKE rolea FROM roleb -- normalized! | ||
REVOKE rolea FROM roleb -- fully parenthesized | ||
REVOKE rolea FROM roleb -- literals removed | ||
REVOKE _ FROM _ -- identifiers removed |
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
Oops, something went wrong.