-
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.
schemachanger: support CREATE SCHEMA ... AUTHORIZATION
This patch enables support for `CREATE SCHEMA ... AUTHORIZATION` in the declarative schemachanger Fixes: #115369 Epic: CRDB-31331 Release note: None
- Loading branch information
Showing
7 changed files
with
35 additions
and
21 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
6 changes: 5 additions & 1 deletion
6
pkg/sql/schemachanger/testdata/end_to_end/create_schema/create_schema.definition
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,3 +1,7 @@ | ||
setup | ||
CREATE USER foo WITH LOGIN PASSWORD 'bar'; | ||
---- | ||
|
||
test | ||
CREATE SCHEMA sc; | ||
CREATE SCHEMA sc AUTHORIZATION foo; | ||
---- |
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
5 changes: 3 additions & 2 deletions
5
pkg/sql/schemachanger/testdata/end_to_end/create_schema/create_schema.explain_shape
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,7 +1,8 @@ | ||
/* setup */ | ||
CREATE USER foo WITH LOGIN PASSWORD 'bar'; | ||
|
||
/* test */ | ||
EXPLAIN (DDL, SHAPE) CREATE SCHEMA sc; | ||
EXPLAIN (DDL, SHAPE) CREATE SCHEMA sc AUTHORIZATION foo; | ||
---- | ||
Schema change plan for CREATE SCHEMA ‹defaultdb›.‹sc›; | ||
Schema change plan for CREATE SCHEMA ‹defaultdb›.‹sc› AUTHORIZATION foo; | ||
└── execute 1 system table mutations transaction |
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