-
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.
sql: fix username parsing for CURRENT_USER/SESSION_USER
Release note (sql change): Fix bug where previously CURRENT_USER and SESSION_USER were parsed incorrectly.
- Loading branch information
1 parent
f730d79
commit d13a9a3
Showing
42 changed files
with
425 additions
and
295 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
drop_owned_by_stmt ::= | ||
'DROP' 'OWNED' 'BY' name_list opt_drop_behavior | ||
'DROP' 'OWNED' 'BY' role_spec_list opt_drop_behavior |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
grant_stmt ::= | ||
'GRANT' 'ALL' 'PRIVILEGES' 'ON' targets 'TO' name_list | ||
| 'GRANT' 'ALL' 'ON' targets 'TO' name_list | ||
| 'GRANT' privilege_list 'ON' targets 'TO' name_list | ||
| 'GRANT' privilege_list 'TO' name_list | ||
| 'GRANT' privilege_list 'TO' name_list 'WITH' 'ADMIN' 'OPTION' | ||
'GRANT' 'ALL' 'PRIVILEGES' 'ON' targets 'TO' role_spec_list | ||
| 'GRANT' 'ALL' 'ON' targets 'TO' role_spec_list | ||
| 'GRANT' privilege_list 'ON' targets 'TO' role_spec_list | ||
| 'GRANT' privilege_list 'TO' role_spec_list | ||
| 'GRANT' privilege_list 'TO' role_spec_list 'WITH' 'ADMIN' 'OPTION' |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
reassign_owned_by_stmt ::= | ||
'REASSIGN' 'OWNED' 'BY' name_list 'TO' role_spec | ||
'REASSIGN' 'OWNED' 'BY' role_spec_list 'TO' role_spec |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
revoke_stmt ::= | ||
'REVOKE' 'ALL' 'PRIVILEGES' 'ON' targets 'FROM' name_list | ||
| 'REVOKE' 'ALL' 'ON' targets 'FROM' name_list | ||
| 'REVOKE' privilege_list 'ON' targets 'FROM' name_list | ||
| 'REVOKE' privilege_list 'FROM' name_list | ||
| 'REVOKE' 'ADMIN' 'OPTION' 'FOR' privilege_list 'FROM' name_list | ||
'REVOKE' 'ALL' 'PRIVILEGES' 'ON' targets 'FROM' role_spec_list | ||
| 'REVOKE' 'ALL' 'ON' targets 'FROM' role_spec_list | ||
| 'REVOKE' privilege_list 'ON' targets 'FROM' role_spec_list | ||
| 'REVOKE' privilege_list 'FROM' role_spec_list | ||
| 'REVOKE' 'ADMIN' 'OPTION' 'FOR' privilege_list 'FROM' role_spec_list |
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
show_grants_stmt ::= | ||
'SHOW' 'GRANTS' 'ON' 'ROLE' name ( ( ',' name ) )* 'FOR' name ( ( ',' name ) )* | ||
| 'SHOW' 'GRANTS' 'ON' 'ROLE' name ( ( ',' name ) )* | ||
| 'SHOW' 'GRANTS' 'ON' 'SCHEMA' schema_name ( ( ',' schema_name ) )* 'FOR' name ( ( ',' name ) )* | ||
'SHOW' 'GRANTS' 'ON' 'ROLE' role_spec_list 'FOR' role_spec_list | ||
| 'SHOW' 'GRANTS' 'ON' 'ROLE' role_spec_list | ||
| 'SHOW' 'GRANTS' 'ON' 'SCHEMA' schema_name ( ( ',' schema_name ) )* 'FOR' role_spec_list | ||
| 'SHOW' 'GRANTS' 'ON' 'SCHEMA' schema_name ( ( ',' schema_name ) )* | ||
| 'SHOW' 'GRANTS' 'ON' 'TYPE' type_name ( ( ',' type_name ) )* 'FOR' name ( ( ',' name ) )* | ||
| 'SHOW' 'GRANTS' 'ON' 'TYPE' type_name ( ( ',' type_name ) )* 'FOR' role_spec_list | ||
| 'SHOW' 'GRANTS' 'ON' 'TYPE' type_name ( ( ',' type_name ) )* | ||
| 'SHOW' 'GRANTS' 'ON' ( | 'TABLE' table_name ( ( ',' table_name ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'FOR' name ( ( ',' name ) )* | ||
| 'SHOW' 'GRANTS' 'ON' ( | 'TABLE' table_name ( ( ',' table_name ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'FOR' role_spec_list | ||
| 'SHOW' 'GRANTS' 'ON' ( | 'TABLE' table_name ( ( ',' table_name ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) | ||
| 'SHOW' 'GRANTS' 'FOR' name ( ( ',' name ) )* | ||
| 'SHOW' 'GRANTS' 'FOR' role_spec_list | ||
| 'SHOW' 'GRANTS' |
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
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
Oops, something went wrong.