You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2019/06/11 11:49:40 UTC

[GitHub] [incubator-shardingsphere] caszhou commented on issue #2527: Get error when call ResultSetReturnedDatabaseMetaData.getActualTableNamePattern

caszhou commented on issue #2527: Get error when call ResultSetReturnedDatabaseMetaData.getActualTableNamePattern
URL: https://github.com/apache/incubator-shardingsphere/issues/2527#issuecomment-500806883
 
 
   @KomachiSion I'm using master-slave modal, no sharding rules.
   
   I look into MasterSlaveDataSource, see
   
   `
       private DatabaseMetaData createCachedDatabaseMetaData(final Map<String, DataSource> dataSourceMap) throws SQLException {
           try (Connection connection = dataSourceMap.values().iterator().next().getConnection()) {
               return new CachedDatabaseMetaData(connection.getMetaData(), dataSourceMap, null);
           }
       }
   `
   
   when instance CachedDatabaseMetaData, the sharding rule is always null.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services