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/09/03 08:10:10 UTC

[GitHub] [incubator-shardingsphere] tristaZero commented on issue #2934: hide assistedQueryColumn and show logicColumn when desc EncryptTable

tristaZero commented on issue #2934: hide assistedQueryColumn and show logicColumn when desc EncryptTable
URL: https://github.com/apache/incubator-shardingsphere/pull/2934#issuecomment-527353313
 
 
   @betterjava Hi, great! You get the point. Moreover, can u make write a function for
   ```
   for (QueryResult each : queryResults) {
               while (each.next()) {
                   MemoryQueryResultRow memoryResultSetRow = new MemoryQueryResultRow(each);
                   if (encrypted) {
                       EncryptTable encryptTable = tables.get(logicTableName);
                       String columnName = memoryResultSetRow.getCell(1).toString();
                       if (encryptTable.getAssistedQueryColumns().contains(columnName)) {
                           continue;
                       }
                       if (encryptTable.getCipherColumns().contains(columnName)) {
                           memoryResultSetRow.setCell(1, encryptTable.getLogicColumn(columnName));
                       }
                   }
                   result.add(memoryResultSetRow);
               }
           }
   ```
   So that others will read it easily. :)

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