tristaZero opened a new issue #2205: When use ShardingQueryAssistedEncryptor to 
find assistedQueryColumns, an outOfIndex exception will occur.
URL: https://github.com/apache/incubator-shardingsphere/issues/2205
 
 
   Here is the point:
   ```
   ShardingEncryptorStrategy
   
   /**
        * Get assisted query column.
        *
        * @param logicTableName logic table name
        * @param columnName column name
        * @return assisted query column
        */
       public Optional<String> getAssistedQueryColumn(final String 
logicTableName, final String columnName) {
           for (ColumnNode each : columns) {
               ColumnNode target = new ColumnNode(logicTableName, columnName);
               if (each.equals(target)) {
                   return 
Optional.of(assistedQueryColumns.get(columns.indexOf(target)).getColumnName());
               }
           }
           return Optional.absent();
       }
   ```

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to