8000 Redshift add support for `IDENTITY PROVIDER` by jon-ruckwood · Pull Request #3815 · flyway/flyway · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Redshift add support for IDENTITY PROVIDER #3815

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public class RedshiftParser extends Parser {
private static final Pattern VACUUM_REGEX = Pattern.compile("^VACUUM");
private static final Pattern ALTER_TABLE_APPEND_FROM_REGEX = Pattern.compile("^ALTER TABLE( .*)? APPEND FROM");
private static final Pattern ALTER_TABLE_ALTER_COLUMN_REGEX = Pattern.compile("^ALTER TABLE( .*)? ALTER COLUMN");
private static final Pattern IDENTITY_PROVIDER_REGEX = Pattern.compile("^(CREATE|ALTER|DROP) IDENTITY PROVIDER");

public RedshiftParser(Configuration configuration, ParsingContext parsingContext) {
super(configuration, parsingContext, 3);
Expand All @@ -44,7 +45,8 @@ protected Boolean detectCanExecuteInTransaction(String simplifiedStatement, List
|| CREATE_EXTERNAL_TABLE_REGEX.matcher(simplifiedStatement).matches()
|| VACUUM_REGEX.matcher(simplifiedStatement).matches()
|| ALTER_TABLE_APPEND_FROM_REGEX.matcher(simplifiedStatement).matches()
|| ALTER_TABLE_ALTER_COLUMN_REGEX.matcher(simplifiedStatement).matches()) {
|| ALTER_TABLE_ALTER_COLUMN_REGEX.matcher(simplifiedStatement).matches()
|| IDENTITY_PROVIDER_REGEX.matcher(simplifiedStatement).matches()) {
return false;
}

Expand Down
0