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/07/01 03:58:54 UTC

[GitHub] [shardingsphere] larry0592 commented on issue #6195: cannot support @ColumnTransformer for AES_DECRYPT AES_ENCRYPT

larry0592 commented on issue #6195:
URL: https://github.com/apache/shardingsphere/issues/6195#issuecomment-652174815


   @tristaZero 
   I modify version 4.1.1 sourcecode   org.apache.shardingsphere.sql.parser.binder.segment.insert.values.InsertValueContext **can work well**
   
   **can you merge or fix  it?**
   
   ```
     private int calculateParametersCount(final Collection<ExpressionSegment> assignments) {
           int result = 0;
           for (ExpressionSegment each : assignments) {
               if (each instanceof ParameterMarkerExpressionSegment) {
                   result++;
               }
               // add by larry 2020-06-30  修复增加 each instanceof ExpressionProjectionSegment
               if (each instanceof ExpressionProjectionSegment) {
                   String text = ((ExpressionProjectionSegment) each).getText();
                   if (text !=null && text.contains("?")) {
                       result++;
                   }
               }
           }
           return result;
       }
   ```


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