Skip to content

Commit 49958b6

Browse files
fix: avoid visiting twice
Signed-off-by: Andreas Reichel <[email protected]>
1 parent 6c98f10 commit 49958b6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/net/sf/jsqlparser/statement/StatementVisitorAdapter.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ public <S> T visit(Insert insert, S context) {
183183
visitWithItems(insert.getWithItemsList(), context);
184184

185185
insert.getTable().accept(fromItemVisitor, context);
186-
fromItemVisitor.visitFromItem(insert.getTable(), context);
187186

188187
if (insert.getColumns() != null) {
189188
for (Column column : insert.getColumns()) {
@@ -221,7 +220,7 @@ public <S> T visit(Insert insert, S context) {
221220
}
222221

223222
private <S> T visitReturningClause(ReturningClause returningClause, S context) {
224-
if (returningClause!=null) {
223+
if (returningClause != null) {
225224
returningClause.forEach(selectItem -> selectItem.accept(selectItemVisitor, context));
226225
// @todo: verify why this is a list of strings and not columns
227226
}

0 commit comments

Comments
 (0)