cbxiaorenwu opened a new issue #7523:
URL: https://github.com/apache/shardingsphere/issues/7523
### Which version of ShardingSphere did you use?
4.1.1
### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere JDBC
Connect two MySQL databases (DS_ 0,ds_ 1) , the table names in the library
are consistent (test), and there is a unique primary key for distinguishing,
Odd primary key in DS_ In the 0 library, the even number of primary keys is
in DS_ 1
### Expected behavior
The modification is successful and only one SQL statement is executed;
### Actual behavior
Cannot support Multiple-Table for
'org.apache.shardingsphere.sql.parser.sql.statement.dml.UpdateStatement@3f7f9d3f'.
```
}{FATAL=Bright red, ERROR=Red, WARN=Bright yellow, INFO=Bright green,
DEBUG=green, TRACE=cyan} java.lang.IllegalStateException: Failed to execute
CommandLineRunner
at
org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:784)
[spring-boot-2.1.15.RELEASE.jar:2.1.15.RELEASE]
at
org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:765)
[spring-boot-2.1.15.RELEASE.jar:2.1.15.RELEASE]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:319)
[spring-boot-2.1.15.RELEASE.jar:2.1.15.RELEASE]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
[spring-boot-2.1.15.RELEASE.jar:2.1.15.RELEASE]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:1204)
[spring-boot-2.1.15.RELEASE.jar:2.1.15.RELEASE]
at net.engining.rrr.init.InitApplication.main(InitApplication.java:19)
[classes/:?]
Caused by:
org.apache.shardingsphere.underlying.common.exception.ShardingSphereException:
Cannot support Multiple-Table for
'org.apache.shardingsphere.sql.parser.sql.statement.dml.UpdateStatement@3f7f9d3f'.
at
org.apache.shardingsphere.sharding.route.engine.type.standard.ShardingStandardRoutingEngine.route(ShardingStandardRoutingEngine.java:72)
~[sharding-core-route-4.1.1.jar:4.1.1]
at
org.apache.shardingsphere.sharding.route.engine.ShardingRouteDecorator.decorate(ShardingRouteDecorator.java:69)
~[sharding-core-route-4.1.1.jar:4.1.1]
at
org.apache.shardingsphere.sharding.route.engine.ShardingRouteDecorator.decorate(ShardingRouteDecorator.java:53)
~[sharding-core-route-4.1.1.jar:4.1.1]
at
org.apache.shardingsphere.underlying.route.DataNodeRouter.executeRoute(DataNodeRouter.java:91)
~[shardingsphere-route-4.1.1.jar:4.1.1]
at
org.apache.shardingsphere.underlying.route.DataNodeRouter.route(DataNodeRouter.java:76)
~[shardingsphere-route-4.1.1.jar:4.1.1]
at
org.apache.shardingsphere.underlying.pluggble.prepare.PreparedQueryPrepareEngine.route(PreparedQueryPrepareEngine.java:54)
~[shardingsphere-pluggable-4.1.1.jar:4.1.1]
at
org.apache.shardingsphere.underlying.pluggble.prepare.BasePrepareEngine.executeRoute(BasePrepareEngine.java:96)
~[shardingsphere-pluggable-4.1.1.jar:4.1.1]
at
org.apache.shardingsphere.underlying.pluggble.prepare.BasePrepareEngine.prepare(BasePrepareEngine.java:83)
~[shardingsphere-pluggable-4.1.1.jar:4.1.1]
at
org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement.prepare(ShardingPreparedStatement.java:183)
~[sharding-jdbc-core-4.1.1.jar:4.1.1]
at
org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement.executeUpdate(ShardingPreparedStatement.java:131)
~[sharding-jdbc-core-4.1.1.jar:4.1.1]
at
net.engining.rrr.init.data.example.QueryDslDemoInit.update_aroundBody2(QueryDslDemoInit.java:124)
~[classes/:?]
### Reason analyze (If you can)
nothing
### Steps to reproduce the behavior, such as: SQL to execute, sharding rule
configuration, when exception occur etc.
nothing
### Example codes for reproduce this issue (such as a github link).
nothing
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]