Closed lshirong closed 3 months ago
Which version of ShardingSphere did you use? 5.1.1
Which project did you use? shardingsphere-jdbc-core-spring-boot-starter
Question When sql "id not in ('1')", there are no route query all database, but only route query the database where '1' is located
Demo
spring.shardingsphere.rules.sharding.default-database-strategy.standard.sharding-column=id spring.shardingsphere.rules.sharding.default-database-strategy.standard.sharding-algorithm-name=id-sharding spring.shardingsphere.rules.sharding.sharding-algorithms.id-shardingtype=CLASS_BASED spring.shardingsphere.rules.sharding.sharding-algorithms.id-sharding.props.strategy=STANDARD spring.shardingsphere.rules.sharding.sharding-algorithms.id-sharding.props.algorithmClassName=com.ShardingAlgorithm
public class ShardingAlgorithm implements StandardShardingAlgorithm
select * from demo where id not in ('1')
I cannot get your point from the title, can you change it?
Hello , this issue has not received a reply for several days. This issue is supposed to be closed.
Question
Which version of ShardingSphere did you use? 5.1.1
Which project did you use? shardingsphere-jdbc-core-spring-boot-starter
Question When sql "id not in ('1')", there are no route query all database, but only route query the database where '1' is located
Demo
sharding-config
spring.shardingsphere.rules.sharding.default-database-strategy.standard.sharding-column=id spring.shardingsphere.rules.sharding.default-database-strategy.standard.sharding-algorithm-name=id-sharding spring.shardingsphere.rules.sharding.sharding-algorithms.id-shardingtype=CLASS_BASED spring.shardingsphere.rules.sharding.sharding-algorithms.id-sharding.props.strategy=STANDARD spring.shardingsphere.rules.sharding.sharding-algorithms.id-sharding.props.algorithmClassName=com.ShardingAlgorithm
ShardingAlgorithm
public class ShardingAlgorithm implements StandardShardingAlgorithm
query sql
select * from demo where id not in ('1')