[#7171] Support parsing SQL Server style table hints
This commit is contained in:
parent
c9815d42b6
commit
a6ac44dc0a
@ -3059,6 +3059,16 @@ final class ParserImpl implements Parser {
|
||||
}
|
||||
else {
|
||||
result = parseTableName(ctx);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// TODO Sample clause
|
||||
}
|
||||
|
||||
@ -3179,6 +3189,69 @@ final class ParserImpl implements Parser {
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private static final Table<?> parseTableValueConstructor(ParserContext ctx) {
|
||||
parseKeyword(ctx, "VALUES");
|
||||
|
||||
@ -7237,6 +7310,10 @@ final class ParserImpl implements Parser {
|
||||
this.bindings = bindings;
|
||||
}
|
||||
|
||||
String substring(int startPosition, int endPosition) {
|
||||
return new String(sql, startPosition, endPosition - startPosition);
|
||||
}
|
||||
|
||||
ParserException internalError() {
|
||||
return exception("Internal Error");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user