tristaZero edited a comment 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 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:
[email protected]


With regards,
Apache Git Services

Reply via email to