diff --git a/docs/generated/sql/bnf/grant_stmt.bnf b/docs/generated/sql/bnf/grant_stmt.bnf index 4f5a00ce3391..0efb0be2f59c 100644 --- a/docs/generated/sql/bnf/grant_stmt.bnf +++ b/docs/generated/sql/bnf/grant_stmt.bnf @@ -1,15 +1,27 @@ grant_stmt ::= - 'GRANT' 'ALL' 'PRIVILEGES' 'ON' targets 'TO' role_spec_list opt_with_grant_option - | 'GRANT' 'ALL' 'ON' targets 'TO' role_spec_list opt_with_grant_option - | 'GRANT' privilege_list 'ON' targets 'TO' role_spec_list opt_with_grant_option + 'GRANT' 'ALL' 'PRIVILEGES' 'ON' targets 'TO' role_spec_list 'WITH' 'GRANT' 'OPTION' + | 'GRANT' 'ALL' 'PRIVILEGES' 'ON' targets 'TO' role_spec_list + | 'GRANT' 'ALL' 'ON' targets 'TO' role_spec_list 'WITH' 'GRANT' 'OPTION' + | 'GRANT' 'ALL' 'ON' targets 'TO' role_spec_list + | 'GRANT' privilege_list 'ON' targets 'TO' role_spec_list 'WITH' 'GRANT' 'OPTION' + | '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' - | 'GRANT' 'ALL' 'PRIVILEGES' 'ON' 'TYPE' target_types 'TO' role_spec_list opt_with_grant_option - | 'GRANT' 'ALL' 'ON' 'TYPE' target_types 'TO' role_spec_list opt_with_grant_option - | 'GRANT' privilege_list 'ON' 'TYPE' target_types 'TO' role_spec_list opt_with_grant_option - | 'GRANT' 'ALL' 'PRIVILEGES' 'ON' 'SCHEMA' schema_name_list 'TO' role_spec_list opt_with_grant_option - | 'GRANT' 'ALL' 'ON' 'SCHEMA' schema_name_list 'TO' role_spec_list opt_with_grant_option - | 'GRANT' privilege_list 'ON' 'SCHEMA' schema_name_list 'TO' role_spec_list opt_with_grant_option - | 'GRANT' 'ALL' 'PRIVILEGES' 'ON' 'ALL' 'TABLES' 'IN' 'SCHEMA' schema_name_list 'TO' role_spec_list opt_with_grant_option - | 'GRANT' 'ALL' 'ON' 'ALL' 'TABLES' 'IN' 'SCHEMA' schema_name_list 'TO' role_spec_list opt_with_grant_option - | 'GRANT' privilege_list 'ON' 'ALL' 'TABLES' 'IN' 'SCHEMA' schema_name_list 'TO' role_spec_list opt_with_grant_option + | 'GRANT' 'ALL' 'PRIVILEGES' 'ON' 'TYPE' target_types 'TO' role_spec_list 'WITH' 'GRANT' 'OPTION' + | 'GRANT' 'ALL' 'PRIVILEGES' 'ON' 'TYPE' target_types 'TO' role_spec_list + | 'GRANT' 'ALL' 'ON' 'TYPE' target_types 'TO' role_spec_list 'WITH' 'GRANT' 'OPTION' + | 'GRANT' 'ALL' 'ON' 'TYPE' target_types 'TO' role_spec_list + | 'GRANT' privilege_list 'ON' 'TYPE' target_types 'TO' role_spec_list 'WITH' 'GRANT' 'OPTION' + | 'GRANT' privilege_list 'ON' 'TYPE' target_types 'TO' role_spec_list + | 'GRANT' 'ALL' 'PRIVILEGES' 'ON' 'SCHEMA' schema_name_list 'TO' role_spec_list 'WITH' 'GRANT' 'OPTION' + | 'GRANT' 'ALL' 'PRIVILEGES' 'ON' 'SCHEMA' schema_name_list 'TO' role_spec_list + | 'GRANT' 'ALL' 'ON' 'SCHEMA' schema_name_list 'TO' role_spec_list 'WITH' 'GRANT' 'OPTION' + | 'GRANT' 'ALL' 'ON' 'SCHEMA' schema_name_list 'TO' role_spec_list + | 'GRANT' privilege_list 'ON' 'SCHEMA' schema_name_list 'TO' role_spec_list 'WITH' 'GRANT' 'OPTION' + | 'GRANT' privilege_list 'ON' 'SCHEMA' schema_name_list 'TO' role_spec_list + | 'GRANT' 'ALL' 'PRIVILEGES' 'ON' 'ALL' 'TABLES' 'IN' 'SCHEMA' schema_name_list 'TO' role_spec_list 'WITH' 'GRANT' 'OPTION' + | 'GRANT' 'ALL' 'PRIVILEGES' 'ON' 'ALL' 'TABLES' 'IN' 'SCHEMA' schema_name_list 'TO' role_spec_list + | 'GRANT' 'ALL' 'ON' 'ALL' 'TABLES' 'IN' 'SCHEMA' schema_name_list 'TO' role_spec_list 'WITH' 'GRANT' 'OPTION' + | 'GRANT' 'ALL' 'ON' 'ALL' 'TABLES' 'IN' 'SCHEMA' schema_name_list 'TO' role_spec_list + | 'GRANT' privilege_list 'ON' 'ALL' 'TABLES' 'IN' 'SCHEMA' schema_name_list 'TO' role_spec_list 'WITH' 'GRANT' 'OPTION' + | 'GRANT' privilege_list 'ON' 'ALL' 'TABLES' 'IN' 'SCHEMA' schema_name_list 'TO' role_spec_list diff --git a/pkg/cmd/docgen/diagrams.go b/pkg/cmd/docgen/diagrams.go index 85bb767a90fa..574d78872faf 100644 --- a/pkg/cmd/docgen/diagrams.go +++ b/pkg/cmd/docgen/diagrams.go @@ -882,7 +882,7 @@ var specs = []stmtSpec{ }, { name: "grant_stmt", - inline: []string{"privileges", "opt_privileges_clause"}, + inline: []string{"privileges", "opt_privileges_clause", "opt_with_grant_option"}, }, { name: "foreign_key_column_level",