strongduanmu commented on issue #27879:
URL: 
https://github.com/apache/shardingsphere/issues/27879#issuecomment-1689601168

   Hi @134130, I have test this case with 
51309509591bb2f5b41c683fb56cf9c20682552f, and it can work now. Besides, I do 
some change for your test case, since from 5.4.0, ShardingSphere will not load 
single tables by default.
   
   ```java
       private DataSource createDataSource(Collection<RuleConfiguration> 
configs) {
           try {
               Collection<RuleConfiguration> allConfigs = new 
LinkedList<>(configs);
               SingleRuleConfiguration singleRuleConfig = new 
SingleRuleConfiguration();
               singleRuleConfig.setTables(Collections.singletonList("*.*"));
               allConfigs.add(singleRuleConfig);
               return ShardingSphereDataSourceFactory.createDataSource(
                       createHikariDataSource(),
                       allConfigs,
                       new Properties());
           } catch (SQLException e) {
               throw new RuntimeException(e);
           }
       }
   ```


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to