[jOOQ/jOOQ#10104] Support parsing FOR JSONB

This commit is contained in:
Lukas Eder 2020-04-28 16:25:19 +02:00
parent 958857c887
commit 93f2116084
2 changed files with 7 additions and 1 deletions

View File

@ -131,6 +131,9 @@ public interface SelectForStep<R extends Record> extends SelectOptionStep<R> {

View File

@ -1136,6 +1136,8 @@ final class ParserImpl implements Parser {
forClause:
if (parseKeywordIf(ctx, "FOR")) {
boolean jsonb;
if (parseKeywordIf(ctx, "KEY SHARE"))
result.setForKeyShare(true);
else if (parseKeywordIf(ctx, "NO KEY UPDATE"))
@ -1180,7 +1182,8 @@ final class ParserImpl implements Parser {
}
else if (parseKeywordIf(ctx, "JSON") && ctx.requireProEdition()) {
else if ((jsonb = parseKeywordIf(ctx, "JSONB") || parseKeywordIf(ctx, "JSON")) && ctx.requireProEdition()) {