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/10/25 05:52:48 UTC

[GitHub] [incubator-shardingsphere] 54chenjian opened a new issue #3370: oracle load meta data get index info user schema error

54chenjian opened a new issue #3370: oracle load meta data get index info user schema error
URL: https://github.com/apache/incubator-shardingsphere/issues/3370
 
 
   ## Bug Report
   
   ### Which version of ShardingSphere did you use?
   
   4.0.0-RC2
   
   ### Which project did you use? Sharding-JDBC or Sharding-Proxy?
   
   Sharding-JDBC
   
   ### Expected behavior
   
   ### Actual behavior
   
   ### Reason analyze (If you can)
   ```java
    private Collection<String> getLogicIndexes(final Connection connection, final String catalog, final String actualTableName) throws SQLException {
           Collection<String> result = new HashSet<>();
           try (ResultSet resultSet = connection.getMetaData().getIndexInfo(catalog, catalog, actualTableName, false, false)) {
               while (resultSet.next()) {
                   Optional<String> logicIndex = getLogicIndex(resultSet.getString("INDEX_NAME"), actualTableName);
                   if (logicIndex.isPresent()) {
                       result.add(logicIndex.get());
                   }
               }
           }
           return result;
       }
   ```
   ```java
      ResultSet getIndexInfo(String catalog, String schema, String table, boolean unique, boolean approximate)
           throws SQLException;
   ```
   oracle catalog is sid ,the second param is scheam,is not sid
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   
   ### Example codes for reproduce this issue (such as a github link).
   

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