diff --git a/src/main/java/net/sf/jsqlparser/expression/ExpressionVisitor.java b/src/main/java/net/sf/jsqlparser/expression/ExpressionVisitor.java index 985547fc6..5ef4c6ad6 100644 --- a/src/main/java/net/sf/jsqlparser/expression/ExpressionVisitor.java +++ b/src/main/java/net/sf/jsqlparser/expression/ExpressionVisitor.java @@ -302,10 +302,6 @@ default void visit(ContainedBy containedBy) { T visit(ParenthesedSelect select, S context); - default void visit(ParenthesedSelect select) { - this.visit(select, null); - } - T visit(Column column, S context); default void visit(Column column) { @@ -596,10 +592,6 @@ default void visit(GeometryDistance geometryDistance) { T visit(Select select, S context); - default void visit(Select select) { - this.visit(select, null); - } - T visit(TranscodingFunction transcodingFunction, S context); default void visit(TranscodingFunction transcodingFunction) { diff --git a/src/main/java/net/sf/jsqlparser/statement/select/SelectVisitorAdapter.java b/src/main/java/net/sf/jsqlparser/statement/select/SelectVisitorAdapter.java index 5820fa864..90fa3b8c2 100644 --- a/src/main/java/net/sf/jsqlparser/statement/select/SelectVisitorAdapter.java +++ b/src/main/java/net/sf/jsqlparser/statement/select/SelectVisitorAdapter.java @@ -24,12 +24,15 @@ public T visit(PlainSelect plainSelect, S context) { @Override public T visit(SetOperationList setOpList, S context) { + for (Select select : setOpList.getSelects()) { + select.accept(this, context); + } return null; } @Override public T visit(WithItem withItem, S context) { - return null; + return withItem.getSelect().accept(this, context); } @Override @@ -39,7 +42,7 @@ public T visit(Values aThis, S context) { @Override public T visit(LateralSubSelect lateralSubSelect, S context) { - return null; + return lateralSubSelect.getSelect().accept(this, context); } @Override