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 2022/12/10 10:45:36 UTC

[GitHub] [shardingsphere] sandynz commented on issue #22614: Can not get index from column label

sandynz commented on issue #22614:
URL: https://github.com/apache/shardingsphere/issues/22614#issuecomment-1345236075

   @wj-li , I had a look at the code of `ShardingSphereResultSet`.
   exception is from:
   ```
       private Integer getIndexFromColumnLabelAndIndexMap(final String columnLabel) throws SQLException {
           Integer result = columnLabelAndIndexMap.get(columnLabel);
           ShardingSpherePreconditions.checkState(null != result, () -> new SQLFeatureNotSupportedException(String.format("Can not get index from column label `%s`.", columnLabel)));
           return result;
       }
   ```
   
   `columnLabelAndIndexMap.get(columnLabel)` return `null`.
   I don't have Oracle 11g environment.
   Could you debug to check the values of `columnLabelAndIndexMap` and `columnLabel`?
   
   It might be column label case-sensitive related.
   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org