提交 8f37cc3d 编写于 作者: C chun.yang 提交者: Liang Zhang

fixed for #3949 (#3950)

上级 d5ab72d3
......@@ -148,7 +148,7 @@ public abstract class BaseShardingEngine {
private Map<BaseRule, SQLRewriteContextDecorator> createSQLRewriteContextDecorator(final ShardingRouteContext shardingRouteContext) {
Map<BaseRule, SQLRewriteContextDecorator> result = new LinkedHashMap<>(2, 1);
result.put(shardingRule, new ShardingSQLRewriteContextDecorator(shardingRouteContext));
if (shardingRule.getEncryptRule().getEncryptTableNames().isEmpty()) {
if (!shardingRule.getEncryptRule().getEncryptTableNames().isEmpty()) {
result.put(shardingRule.getEncryptRule(), new EncryptSQLRewriteContextDecorator());
}
return result;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册