示例#1
0
  protected SQLAggregateExpr parseAggregateExprRest(SQLAggregateExpr aggregateExpr) {
    if (lexer.token() == Token.ORDER) {
      SQLOrderBy orderBy = this.parseOrderBy();
      aggregateExpr.putAttribute("ORDER BY", orderBy);
    }
    if (identifierEquals("SEPARATOR")) {
      lexer.nextToken();

      SQLExpr seperator = this.primary();

      aggregateExpr.putAttribute("SEPARATOR", seperator);
    }
    return aggregateExpr;
  }
示例#2
0
 public boolean visit(SQLAggregateExpr x) {
   accept(x.getArguments());
   accept(x.getWithinGroup());
   accept(x.getOver());
   return false;
 }