提交 92c5706f 编写于 作者: T tristaZero

modify insert value token for new parser

上级 d7422277
......@@ -43,8 +43,8 @@ public final class InsertColumnsExtractor implements OptionalSQLSegmentExtractor
public Optional<InsertColumnsSegment> extract(final ParserRuleContext ancestorNode, final Map<ParserRuleContext, Integer> parameterMarkerIndexes) {
Optional<ParserRuleContext> insertValuesClause = ExtractorUtils.findFirstChildNode(ancestorNode, RuleName.INSERT_VALUES_CLAUSE);
return insertValuesClause.isPresent()
? Optional.of(new InsertColumnsSegment(insertValuesClause.get().getStart().getStartIndex(), extractColumns(insertValuesClause.get(), parameterMarkerIndexes)))
: Optional.<InsertColumnsSegment>absent();
? Optional.of(new InsertColumnsSegment(insertValuesClause.get().getStart().getStartIndex(),
insertValuesClause.get().getStop().getStopIndex(), extractColumns(insertValuesClause.get(), parameterMarkerIndexes))) : Optional.<InsertColumnsSegment>absent();
}
private Collection<ColumnSegment> extractColumns(final ParserRuleContext ancestorNode, final Map<ParserRuleContext, Integer> parameterMarkerIndexes) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册