You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "starldh (via GitHub)" <gi...@apache.org> on 2023/03/21 03:51:33 UTC

[GitHub] [shardingsphere] starldh commented on issue #24337: Using the 'like' operator to perform a fuzzy search on an encrypted column in version 5.3.0.

starldh commented on issue #24337:
URL: https://github.com/apache/shardingsphere/issues/24337#issuecomment-1477243711

   @strongduanmu @gxxiong 
   Hello. I use 5.3.2-SNAPSHOT. But it doesn't work well.
    `select * from sla_user_service_recorde where user_name like CONCAT('%', 'abc', '%'). `It work well
    `select * from sla_user_service_recorde where user_name like CONCAT('%', #{userName}, '%').` It doen't work.
   Error is :
   `java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
   	at java.util.LinkedList.checkElementIndex(LinkedList.java:555) ~[na:1.8.0_362]
   	at java.util.LinkedList.get(LinkedList.java:476) ~[na:1.8.0_362]
   	at org.apache.shardingsphere.encrypt.rewrite.token.generator.EncryptPredicateRightValueTokenGenerator.getPositionValues(EncryptPredicateRightValueTokenGenerator.java:141) ~[shardingsphere-encrypt-core-5.3.2-SNAPSHOT.jar:5.3.2-SNAPSHOT]`
   


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