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 2020/01/20 05:34:11 UTC
[GitHub] [incubator-shardingsphere] xiyelife opened a new issue #4037: sharding+encrypt when sql contains "\n",sql rewrite error for mybatis.
xiyelife opened a new issue #4037: sharding+encrypt when sql contains "\n",sql rewrite error for mybatis.
URL: https://github.com/apache/incubator-shardingsphere/issues/4037
### Which version of ShardingSphere did you use?
4.0.0 and dev branch
### Which project did you use? Sharding-JDBC or Sharding-Proxy?
sharding-jdbc
### Expected behavior
the `(` are not in pairs , there are 5 `(` in the actual SQL.
### Actual behavior
```
ShardingSphere-SQL : Logic SQL: select
*
from user_info
WHERE ( mobile in
(
?
) )
```
```
ShardingSphere-SQL : Actual SQL: ds1 ::: select
*
from user_info_1
WHERE ( mobile in
(
(?) ) ::: [15xxxxxxxxxx]
```
### Reason analyze (If you can)
### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
### Example codes for reproduce this issue (such as a github link).
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-shardingsphere] xiyelife commented on issue #4037: sharding+encrypt when sql contains "\n",sql rewrite error for mybatis. (in)
Posted by GitBox <gi...@apache.org>.
xiyelife commented on issue #4037: sharding+encrypt when sql contains "\n",sql rewrite error for mybatis. (in)
URL: https://github.com/apache/incubator-shardingsphere/issues/4037#issuecomment-583221283
@SteNicholas I add parse logic of the IN operator bracket's index for encrypt rewirte, and use left bracket's startIndex to rewrite `EncryptPredicateRightValueToken` for EncryptPredicateRightValueTokenGenerator
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-shardingsphere] terrymanu closed issue #4037: sharding+encrypt when sql contains "\n",sql rewrite error for mybatis. (in)
Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #4037: sharding+encrypt when sql contains "\n",sql rewrite error for mybatis. (in)
URL: https://github.com/apache/incubator-shardingsphere/issues/4037
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services