Skip to content

Commit

Permalink
Merge pull request #82534 from cockroachdb/blathers/backport-release-…
Browse files Browse the repository at this point in the history
…22.1-81325

release-22.1: DOC-3097: Updated SQL diagrams for SHOW DEFAULT PRIVILEGES
  • Loading branch information
nickvigilante authored Jun 13, 2022
2 parents 3181b7f + 0c0855b commit bc154be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/generated/sql/bnf/show_default_privileges_stmt.bnf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
show_default_privileges_stmt ::=
'SHOW' 'DEFAULT' 'PRIVILEGES' 'FOR' 'ROLE' role_spec_list opt_in_schema
| 'SHOW' 'DEFAULT' 'PRIVILEGES' 'FOR' 'USER' role_spec_list opt_in_schema
| 'SHOW' 'DEFAULT' 'PRIVILEGES' opt_in_schema
| 'SHOW' 'DEFAULT' 'PRIVILEGES' 'FOR' 'ALL' 'ROLES' opt_in_schema
'SHOW' 'DEFAULT' 'PRIVILEGES' 'FOR' 'ROLE' role_spec_list ( 'IN' 'SCHEMA' ( ( qualifiable_schema_name ) ( ( ',' qualifiable_schema_name ) )* ) | )
| 'SHOW' 'DEFAULT' 'PRIVILEGES' 'FOR' 'USER' role_spec_list ( 'IN' 'SCHEMA' ( ( qualifiable_schema_name ) ( ( ',' qualifiable_schema_name ) )* ) | )
| 'SHOW' 'DEFAULT' 'PRIVILEGES' ( 'IN' 'SCHEMA' ( ( qualifiable_schema_name ) ( ( ',' qualifiable_schema_name ) )* ) | )
| 'SHOW' 'DEFAULT' 'PRIVILEGES' 'FOR' 'ALL' 'ROLES' ( 'IN' 'SCHEMA' ( ( qualifiable_schema_name ) ( ( ',' qualifiable_schema_name ) )* ) | )
3 changes: 3 additions & 0 deletions pkg/cmd/docgen/diagrams.go
Original file line number Diff line number Diff line change
Expand Up @@ -1227,6 +1227,9 @@ var specs = []stmtSpec{
{
name: "show_default_privileges_stmt",
inline: []string{"opt_for_roles", "role_or_group_or_user", "name_list"},
replace: map[string]string{
"opt_in_schema": "( 'IN' 'SCHEMA' ( ( qualifiable_schema_name ) ( ( ',' qualifiable_schema_name ) )* ) | )",
},
},
{
name: "show_enums",
Expand Down

0 comments on commit bc154be

Please sign in to comment.