diff --git a/infra/binder/src/main/java/org/apache/shardingsphere/infra/binder/statement/dml/UpdateStatementBinder.java b/infra/binder/src/main/java/org/apache/shardingsphere/infra/binder/statement/dml/UpdateStatementBinder.java index 773519caa4748..787cd51b13875 100644 --- a/infra/binder/src/main/java/org/apache/shardingsphere/infra/binder/statement/dml/UpdateStatementBinder.java +++ b/infra/binder/src/main/java/org/apache/shardingsphere/infra/binder/statement/dml/UpdateStatementBinder.java @@ -24,7 +24,6 @@ import org.apache.shardingsphere.infra.binder.segment.where.WhereSegmentBinder; import org.apache.shardingsphere.infra.binder.statement.SQLStatementBinder; import org.apache.shardingsphere.infra.binder.statement.SQLStatementBinderContext; -import org.apache.shardingsphere.sql.parser.statement.core.segment.generic.table.TableSegment; import org.apache.shardingsphere.sql.parser.statement.core.statement.dml.UpdateStatement; import java.util.Collections; @@ -40,8 +39,7 @@ public final class UpdateStatementBinder implements SQLStatementBinder tableBinderContexts = new LinkedHashMap<>(); - TableSegment boundedTableSegment = TableSegmentBinder.bind(sqlStatement.getTable(), binderContext, tableBinderContexts, Collections.emptyMap()); - result.setTable(boundedTableSegment); + result.setTable(TableSegmentBinder.bind(sqlStatement.getTable(), binderContext, tableBinderContexts, Collections.emptyMap())); sqlStatement.getAssignmentSegment().ifPresent(optional -> result.setSetAssignment(AssignmentSegmentBinder.bind(optional, binderContext, tableBinderContexts, Collections.emptyMap()))); sqlStatement.getWhere().ifPresent(optional -> result.setWhere(WhereSegmentBinder.bind(optional, binderContext, tableBinderContexts, Collections.emptyMap()))); return result;