{if (true) return SqlIdentifier.star(list, pos, posList);}
/** * Parses one unaliased expression in a select list. */ final public SqlNode SelectExpression() throws ParseException { SqlNode e; if (jj_2_109(2)) { jj_consume_token(STAR); {if (true) return SqlIdentifier.star(getPos());} } else if (jj_2_110(2)) { e = Expression(ExprContext.ACCEPT_SUB_QUERY); {if (true) return e;} } else { jj_consume_token(-1); throw new ParseException(); } throw new Error("Missing return statement in function"); }
/** * Creates the SELECT statement that putatively feeds rows into a DELETE * statement to be deleted. * * @param call Call to the DELETE operator * @return select statement */ protected SqlSelect createSourceSelectForDelete(SqlDelete call) { final SqlNodeList selectList = new SqlNodeList(SqlParserPos.ZERO); selectList.add(SqlIdentifier.star(SqlParserPos.ZERO)); SqlNode sourceTable = call.getTargetTable(); if (call.getAlias() != null) { sourceTable = SqlValidatorUtil.addAlias( sourceTable, call.getAlias().getSimple()); } return new SqlSelect(SqlParserPos.ZERO, null, selectList, sourceTable, call.getCondition(), null, null, null, null, null, null); }
{if (true) return SqlIdentifier.star(list, pos, posList);}
/** * Parses one unaliased expression in a select list. */ final public SqlNode SelectExpression() throws ParseException { SqlNode e; if (jj_2_109(2)) { jj_consume_token(STAR); {if (true) return SqlIdentifier.star(getPos());} } else if (jj_2_110(2)) { e = Expression(ExprContext.ACCEPT_SUB_QUERY); {if (true) return e;} } else { jj_consume_token(-1); throw new ParseException(); } throw new Error("Missing return statement in function"); }
/** * Creates the SELECT statement that putatively feeds rows into an UPDATE * statement to be updated. * * @param call Call to the UPDATE operator * @return select statement */ protected SqlSelect createSourceSelectForUpdate(SqlUpdate call) { final SqlNodeList selectList = new SqlNodeList(SqlParserPos.ZERO); selectList.add(SqlIdentifier.star(SqlParserPos.ZERO)); int ordinal = 0; for (SqlNode exp : call.getSourceExpressionList()) { // Force unique aliases to avoid a duplicate for Y with // SET X=Y String alias = SqlUtil.deriveAliasFromOrdinal(ordinal); selectList.add(SqlValidatorUtil.addAlias(exp, alias)); ++ordinal; } SqlNode sourceTable = call.getTargetTable(); if (call.getAlias() != null) { sourceTable = SqlValidatorUtil.addAlias( sourceTable, call.getAlias().getSimple()); } return new SqlSelect(SqlParserPos.ZERO, null, selectList, sourceTable, call.getCondition(), null, null, null, null, null, null); }
selectList.add(SqlIdentifier.star(SqlParserPos.ZERO)); final SqlNodeList orderList; if (getInnerSelect(node) != null && isAggregate(getInnerSelect(node))) { selectList.add(SqlIdentifier.star(SqlParserPos.ZERO)); return new SqlSelect(SqlParserPos.ZERO, null, selectList, call.operand(0), null, null, null, null, null, null, null);
jj_consume_token(LPAREN); jj_consume_token(STAR); args = startList(SqlIdentifier.star(getPos())); jj_consume_token(RPAREN); } else if (jj_2_580(2)) {
selectList.add(SqlIdentifier.star(SqlParserPos.ZERO));
jj_consume_token(LPAREN); jj_consume_token(STAR); args = startList(SqlIdentifier.star(getPos())); jj_consume_token(RPAREN); } else if (jj_2_580(2)) {
{if ("" != null) return SqlIdentifier.star(list, pos, posList);}
/** * Parses one unaliased expression in a select list. */ final public SqlNode SelectExpression() throws ParseException {SqlNode e; if (jj_2_111(2)) { jj_consume_token(STAR); {if ("" != null) return SqlIdentifier.star(getPos());} } else if (jj_2_112(2)) { e = Expression(ExprContext.ACCEPT_SUB_QUERY); {if ("" != null) return e;} } else { jj_consume_token(-1); throw new ParseException(); } throw new Error("Missing return statement in function"); }
jj_consume_token(RPAREN); args = new SqlNodeList(s1.pos()); args.add(SqlIdentifier.star(s1.pos())); } else if (jj_2_667(2)) { jj_consume_token(LPAREN);
/** Creates an identifier that is a singleton wildcard star. */ public static SqlIdentifier star(SqlParserPos pos) { return star(ImmutableList.of(""), pos, ImmutableList.of(pos)); }
/** Creates an identifier that is a singleton wildcard star. */ public static SqlIdentifier star(SqlParserPos pos) { return star(ImmutableList.of(""), pos, ImmutableList.of(pos)); }
jj_consume_token(RPAREN); args = new SqlNodeList(s1.pos()); args.add(SqlIdentifier.star(s1.pos())); } else if (jj_2_667(2)) { jj_consume_token(LPAREN);
jj_consume_token(LPAREN); jj_consume_token(STAR); args = startList(SqlIdentifier.star(getPos())); jj_consume_token(RPAREN); } else if (jj_2_585(2)) {
SqlString generateSql() { final SqlNodeList selectList = new SqlNodeList( Collections.singletonList(SqlIdentifier.star(SqlParserPos.ZERO)), SqlParserPos.ZERO); SqlSelect node = new SqlSelect(SqlParserPos.ZERO, SqlNodeList.EMPTY, selectList, tableName(), null, null, null, null, null, null, null); final SqlPrettyWriter writer = new SqlPrettyWriter(jdbcSchema.dialect); node.unparse(writer, 0, 0); return writer.toSqlString(); }
SqlString generateSql() { final SqlNodeList selectList = new SqlNodeList( Collections.singletonList(SqlIdentifier.star(SqlParserPos.ZERO)), SqlParserPos.ZERO); SqlSelect node = new SqlSelect(SqlParserPos.ZERO, SqlNodeList.EMPTY, selectList, tableName(), null, null, null, null, null, null, null); final SqlPrettyWriter writer = new SqlPrettyWriter(jdbcSchema.dialect); node.unparse(writer, 0, 0); return writer.toSqlString(); }
jj_consume_token(RPAREN); args = new SqlNodeList(s1.pos()); args.add(SqlIdentifier.star(s1.pos())); } else if (jj_2_672(2)) { jj_consume_token(LPAREN);