menghaoranss opened a new issue #7812:
URL: https://github.com/apache/shardingsphere/issues/7812


   ## Bug Report
   
   ### Which version of ShardingSphere did you use?
   
   The master branch
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   ShardingSphere-Proxy
   
   ### Expected behavior
   
   Logic SQL:
   ```
   update t_encrypt set order_id=111 where user_id=1;
   ```
   
   Actual SQL: 
   ```
   update t_encrypt set order_cipher = '202cb962ac59075b964b07152d234b70' where 
user_cipher='Lm04PRW+sp+mG/QuimAUew=='
   ```
   
   ### Actual behavior
   
   The update sql was rewritten error
   
   ```
   update t_encrypt set order_id=111 where 
user_cipher='Lm04PRW+sp+mG/QuimAUew==';
   ```
   Column `order_id` was not replaced by encrypted column.
   
   ### Reason analyze (If you can)
   Here are some differences about UpdateStatement of PG and mysql :
   
   
![image](https://user-images.githubusercontent.com/60651792/96248260-dc1cdc00-0fdd-11eb-99a9-e69ed5978b70.png)
   
![image](https://user-images.githubusercontent.com/60651792/96248363-0bcbe400-0fde-11eb-86c8-4e39b8c04e59.png)
   
   
   


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to