@Override protected void accept0(SQLASTVisitor visitor) { if (visitor.visit(this)) { acceptChild(visitor, getItems()); } visitor.endVisit(this); }
@Override public boolean visit(SQLPartitionValue x) { if (x.getOperator() == SQLPartitionValue.Operator.LessThan // && (!JdbcConstants.ORACLE.equals(getDbType())) && x.getItems().size() == 1 // && x.getItems().get(0) instanceof SQLIdentifierExpr) { SQLIdentifierExpr ident = (SQLIdentifierExpr) x.getItems().get(0); if ("MAXVALUE".equalsIgnoreCase(ident.getName())) { print0(ucase ? "VALUES LESS THAN MAXVALUE" : "values less than maxvalue"); return false; } } if (x.getOperator() == SQLPartitionValue.Operator.LessThan) { print0(ucase ? "VALUES LESS THAN (" : "values less than ("); } else if (x.getOperator() == SQLPartitionValue.Operator.In) { print0(ucase ? "VALUES IN (" : "values in ("); } else { print(ucase ? "VALUES (" : "values ("); } printAndAccept(x.getItems(), ", "); print(')'); return false; }
this.exprList(values.getItems(), values); accept(Token.RPAREN); } else if (lexer.identifierEquals(FnvHash.Constants.LESS)) { } else { accept(Token.LPAREN); this.exprList(values.getItems(), values); accept(Token.RPAREN); values = new SQLPartitionValue(SQLPartitionValue.Operator.List); lexer.nextToken(); this.exprList(values.getItems(), values); accept(Token.RPAREN);
@Override public boolean visit(SQLPartitionValue x) { if (x.getOperator() == SQLPartitionValue.Operator.LessThan // && (!JdbcConstants.ORACLE.equals(getDbType())) && x.getItems().size() == 1 // && x.getItems().get(0) instanceof SQLIdentifierExpr) { SQLIdentifierExpr ident = (SQLIdentifierExpr) x.getItems().get(0); if ("MAXVALUE".equalsIgnoreCase(ident.getName())) { print0(ucase ? "VALUES LESS THAN MAXVALUE" : "values less than maxvalue"); return false; } } if (x.getOperator() == SQLPartitionValue.Operator.LessThan) { print0(ucase ? "VALUES LESS THAN (" : "values less than ("); } else if (x.getOperator() == SQLPartitionValue.Operator.In) { print0(ucase ? "VALUES IN (" : "values in ("); } else { print(ucase ? "VALUES (" : "values ("); } printAndAccept(x.getItems(), ", "); print(')'); return false; }
@Override protected void accept0(SQLASTVisitor visitor) { if (visitor.visit(this)) { acceptChild(visitor, getItems()); } visitor.endVisit(this); }
this.exprList(values.getItems(), values); accept(Token.RPAREN); } else if (lexer.identifierEquals(FnvHash.Constants.LESS)) { } else { accept(Token.LPAREN); this.exprList(values.getItems(), values); accept(Token.RPAREN); values = new SQLPartitionValue(SQLPartitionValue.Operator.List); lexer.nextToken(); this.exprList(values.getItems(), values); accept(Token.RPAREN);