Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
zihaoAK47 committed Nov 10, 2023
1 parent 427a4cd commit 7574ca5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ public ASTNode visitSelectCombineClause(final SelectCombineClauseContext ctx) {
if (null != ctx.selectSubquery()) {
result.setProjections(left.getProjections());
result.setFrom(left.getFrom());
visitSelectCombineClause(ctx, result, left);
setSelectCombineClause(ctx, result, left);
}
if (null != ctx.orderByClause()) {
result.setOrderBy((OrderBySegment) visit(ctx.orderByClause()));
Expand All @@ -669,8 +669,8 @@ public ASTNode visitParenthesisSelectSubquery(final ParenthesisSelectSubqueryCon
return visit(ctx.selectSubquery());
}

private void visitSelectCombineClause(final SelectCombineClauseContext ctx, final OracleSelectStatement result, final OracleSelectStatement left) {
for (int i = 0 ; i < ctx.selectSubquery().size(); i++) {
private void setSelectCombineClause(final SelectCombineClauseContext ctx, final OracleSelectStatement result, final OracleSelectStatement left) {
for (int i = 0; i < ctx.selectSubquery().size(); i++) {
CombineType combineType;
if (null != ctx.UNION(i) && null != ctx.ALL(i)) {
combineType = CombineType.UNION_ALL;
Expand Down

0 comments on commit 7574ca5

Please sign in to comment.