Skip to content

Commit

Permalink
[#7171] Support parsing SQL Server style table hints
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaseder committed Mar 9, 2018
1 parent c9815d4 commit a6ac44d
Showing 1 changed file with 77 additions and 0 deletions.
77 changes: 77 additions & 0 deletions jOOQ/src/main/java/org/jooq/impl/ParserImpl.java
Expand Up @@ -3059,6 +3059,16 @@ else if (peekKeyword(ctx, "VALUES")) {
}
else {
result = parseTableName(ctx);










// TODO Sample clause
}

Expand Down Expand Up @@ -3179,6 +3189,69 @@ else if (!peekKeyword(ctx, SELECT_KEYWORDS))
return result;
}
































































private static final Table<?> parseTableValueConstructor(ParserContext ctx) {
parseKeyword(ctx, "VALUES");

Expand Down Expand Up @@ -7237,6 +7310,10 @@ static final class ParserContext {
this.bindings = bindings;
}

String substring(int startPosition, int endPosition) {
return new String(sql, startPosition, endPosition - startPosition);
}

ParserException internalError() {
return exception("Internal Error");
}
Expand Down

0 comments on commit a6ac44d

Please sign in to comment.