use of com.alibaba.druid.sql.dialect.postgresql.ast.expr.PGIntervalExpr in project druid by alibaba.
the class PGExprParser method parseInterval.
@Override
protected SQLExpr parseInterval() {
accept(Token.INTERVAL);
PGIntervalExpr intervalExpr = new PGIntervalExpr();
if (lexer.token() != Token.LITERAL_CHARS) {
return new SQLIdentifierExpr("INTERVAL");
}
intervalExpr.setValue(new SQLCharExpr(lexer.stringVal()));
lexer.nextToken();
return intervalExpr;
}
Aggregations