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 2021/12/24 07:53:44 UTC
[GitHub] [shardingsphere] roodkcab commented on issue #14262: xa recover got exception when encrypt rule configured
roodkcab commented 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` 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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org