cheese8 opened a new pull request #12504:
URL: https://github.com/apache/shardingsphere/pull/12504


   Fixes #12462. @strongduanmu 
   
   Changes proposed in this pull request:
   - Support encrypt rewrite for join table segment (SimpleTableSegment).
   
   Test on those 2 cases right:
   
   Logic SQL:
   SELECT u.mobile, u.username, u.id_no, o.card_no FROM `order` o right join 
`user` u on o.card_no=u.id_no where o.card_no=? and u.mobile=?
   
   √Actual SQL:
   SELECT u.mobile_cipher AS mobile, u.username, u.id_no_cipher AS id_no, 
o.card_no_cipher AS card_no FROM `order` o right join `user` u on 
o.card_no_hash=u.id_no_hash where o.card_no_hash=? and u.mobile_hash=?
   
   ------------
   Logic SQL:
   SELECT u.mobile, u.username, u.id_no, o.card_no FROM `order` o right join 
`user` u on o.card_no=u.id_no join bankcard c on o.card_no=c.card_no where 
o.card_no=? and u.mobile=?
   
   √Actual SQL:
   SELECT u.mobile_cipher AS mobile, u.username, u.id_no_cipher AS id_no, 
o.card_no_cipher AS card_no FROM `order` o right join `user` u on 
o.card_no_hash=u.id_no_hash join bankcard c on o.card_no_hash=c.card_no where 
o.card_no_hash=? and u.mobile_hash=?


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