|
28 | 28 | import org.apache.shardingsphere.infra.route.engine.tableless.type.broadcast.TablelessInstanceBroadcastRouteEngine;
|
29 | 29 | import org.apache.shardingsphere.infra.route.engine.tableless.type.ignore.TablelessIgnoreRouteEngine;
|
30 | 30 | import org.apache.shardingsphere.infra.route.engine.tableless.type.unicast.TablelessDataSourceUnicastRouteEngine;
|
31 |
| -import org.apache.shardingsphere.infra.session.connection.ConnectionContext; |
32 | 31 | import org.apache.shardingsphere.infra.session.query.QueryContext;
|
33 | 32 | import org.apache.shardingsphere.sql.parser.statement.core.statement.SQLStatement;
|
34 | 33 | import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.AlterResourceGroupStatement;
|
@@ -82,7 +81,7 @@ public static TablelessRouteEngine newInstance(final QueryContext queryContext,
|
82 | 81 | return getDDLRouteEngine(queryContext.getSqlStatementContext(), database);
|
83 | 82 | }
|
84 | 83 | if (sqlStatement instanceof DMLStatement) {
|
85 |
| - return getDMLRouteEngine(queryContext.getSqlStatementContext(), queryContext.getConnectionContext()); |
| 84 | + return getDMLRouteEngine(queryContext.getSqlStatementContext()); |
86 | 85 | }
|
87 | 86 | return new TablelessIgnoreRouteEngine();
|
88 | 87 | }
|
@@ -135,9 +134,9 @@ private static TablelessRouteEngine getCursorRouteEngine(final SQLStatementConte
|
135 | 134 | return new TablelessIgnoreRouteEngine();
|
136 | 135 | }
|
137 | 136 |
|
138 |
| - private static TablelessRouteEngine getDMLRouteEngine(final SQLStatementContext sqlStatementContext, final ConnectionContext connectionContext) { |
| 137 | + private static TablelessRouteEngine getDMLRouteEngine(final SQLStatementContext sqlStatementContext) { |
139 | 138 | if (sqlStatementContext instanceof SelectStatementContext) {
|
140 |
| - return new TablelessDataSourceUnicastRouteEngine(connectionContext); |
| 139 | + return new TablelessDataSourceUnicastRouteEngine(); |
141 | 140 | }
|
142 | 141 | return new TablelessIgnoreRouteEngine();
|
143 | 142 | }
|
|
0 commit comments