[jOOQ/jOOQ#9775] [jOOQ/jOOQ#10168] Support CREATE SCHEMA AUTHORIZATION
This commit is contained in:
parent
358c4ec426
commit
a2c46b838d
@ -4562,8 +4562,12 @@ final class ParserImpl implements Parser {
|
||||
|
||||
private static final DDLQuery parseCreateSchema(ParserContext ctx) {
|
||||
boolean ifNotExists = parseKeywordIf(ctx, "IF NOT EXISTS");
|
||||
boolean authorization = parseKeywordIf(ctx, "AUTHORIZATION");
|
||||
Schema schemaName = parseSchemaName(ctx);
|
||||
|
||||
if (!authorization && parseKeywordIf(ctx, "AUTHORIZATION"))
|
||||
parseUser(ctx);
|
||||
|
||||
return ifNotExists
|
||||
? ctx.dsl.createSchemaIfNotExists(schemaName)
|
||||
: ctx.dsl.createSchema(schemaName);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user