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 2022/12/22 07:38:24 UTC
[GitHub] [shardingsphere] gxxiong commented on a diff in pull request #23030: Like query algorithm support '_' match
gxxiong commented on code in PR #23030:
URL: https://github.com/apache/shardingsphere/pull/23030#discussion_r1055169859
##########
features/encrypt/core/src/main/java/org/apache/shardingsphere/encrypt/algorithm/like/CharDigestLikeEncryptAlgorithm.java:
##########
@@ -154,17 +154,13 @@ private String digest(final String plainValue) {
StringBuilder result = new StringBuilder(plainValue.length());
for (char each : plainValue.toCharArray()) {
char maskedChar = getMaskedChar(each);
- if ('%' == maskedChar) {
Review Comment:
The getMaskedChar function returns % or _ directly
##########
docs/document/content/features/encrypt/limitations.cn.md:
##########
@@ -4,6 +4,7 @@ weight = 2
+++
- 需自行处理数据库中原始的存量数据;
+- 模糊查询支持%、_,暂不支持escape;
Review Comment:
ok
--
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