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 2020/03/27 12:20:38 UTC

[GitHub] [incubator-shardingsphere] dongzl commented on a change in pull request #4964: Fixes insensitive for DESC table for encrypt.

dongzl commented on a change in pull request #4964: Fixes insensitive for DESC table for encrypt.
URL: https://github.com/apache/incubator-shardingsphere/pull/4964#discussion_r399224936
 
 

 ##########
 File path: encrypt-core/encrypt-core-merge/src/main/java/org/apache/shardingsphere/encrypt/merge/dal/impl/EncryptColumnsMergedResult.java
 ##########
 @@ -66,19 +70,50 @@ public final boolean next() throws SQLException {
         return true;
     }
     
+    private Collection<String> getAssistedQueryColumns() {
+        return getTableEncryptColumnMetaDatas().stream().map(EncryptColumnMetaData::getAssistedQueryColumnName)
+                .collect(Collectors.toList());
+    }
+    
+    private Collection<String> getPlainColumns() {
+        return getTableEncryptColumnMetaDatas().stream().map(EncryptColumnMetaData::getPlainColumnName)
+                .collect(Collectors.toList());
+    }
+    
+    private Collection<EncryptColumnMetaData> getTableEncryptColumnMetaDatas() {
+        Collection<EncryptColumnMetaData> result = new LinkedList<>();
+        for (Map.Entry<String, ColumnMetaData> entry : schemaMetaData.get(tableName).getColumns().entrySet()) {
 
 Review comment:
   OK, I fix it. Thanks.

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