roodkcab edited a comment on issue #14262:
URL: 
https://github.com/apache/shardingsphere/issues/14262#issuecomment-1000707986


   ```
       public ResultDecorator newInstance(final DatabaseType databaseType, 
final ShardingSphereSchema schema,
                                          final EncryptRule encryptRule, final 
ConfigurationProperties props, final SQLStatementContext sqlStatementContext) {
           if (sqlStatementContext instanceof SelectStatementContext) {
               EncryptAlgorithmMetaData metaData = new 
EncryptAlgorithmMetaData(schema, encryptRule, (SelectStatementContext) 
sqlStatementContext);
               return new EncryptDQLResultDecorator(metaData);
           } 
           if (sqlStatementContext.getSqlStatement() instanceof DALStatement) {
               return new EncryptDALResultDecorator();
           }
           return new TransparentResultDecorator();
       }
   ```
   `EncryptResultDecoratorEngine` returns a `TransparentResultDecorator` when 
execute `xa recover` which in turn receive a `EncryptRule` instead of 
`TransparentRule` in decorate method 


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to