tristaZero commented on a change in pull request #5206: Simplify the 
SelectStatement
URL: 
https://github.com/apache/incubator-shardingsphere/pull/5206#discussion_r410153576
 
 

 ##########
 File path: 
encrypt-core/encrypt-core-rewrite/src/main/java/org/apache/shardingsphere/encrypt/rewrite/token/generator/impl/EncryptProjectionTokenGenerator.java
 ##########
 @@ -51,14 +52,15 @@
     
     @Override
     protected boolean isGenerateSQLTokenForEncrypt(final SQLStatementContext 
sqlStatementContext) {
-        return sqlStatementContext instanceof SelectStatementContext && 
!((SelectStatementContext) 
sqlStatementContext).getSqlStatement().getSimpleTableSegments().isEmpty();
+        SQLStatement sqlStatement = sqlStatementContext.getSqlStatement();
 
 Review comment:
   Not used?

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