[jOOQ/jOOQ#9775] [jOOQ/jOOQ#10168] Support CREATE SCHEMA AUTHORIZATION

This commit is contained in:
Lukas Eder 2020-05-06 13:28:22 +02:00
parent 358c4ec426
commit a2c46b838d

View File

@ -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);