Please pay attention on issues you submitted, because we maybe need more details.
If no response anymore and we cannot reproduce it on current information, we will close it.
Please answer these questions before submitting your issue. Thanks!
Which version of ShardingSphere did you use?
5.5.0
Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-JDBC
Expected behavior
Logic SQL:
select * from table where cipher_column like ? escape ?;
Excepted after encrypt operate SQL:
select * from table where likequery_column like ? escape ?;
Actual behavior
Actual after encrypt operate SQL:
select * from table where likequery_column like ?;
‘escape ?’ lost and number of parameters is 2 then Parameter index out of range (2 > number of parameters, which is 1)
Reason analyze (If you can)
Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
-- Logic SQL:
select
petable0_.id, petable0_.card_no
from pe_table petable0_
where petable0_.fk_batch_id=?
and (petable0_.card_no like ? escape ?) order by petable0_.id desc limit ?
-- Actual SQL:
select
petable0_.id, petable0_.card_no
from pe_table petable0_
where petable0_.fk_batch_id=?
and (petable0_.card_no_like like ?)
order by petable0_.id desc limit ?
Example codes for reproduce this issue (such as a github link).
Bug Report
For English only, other languages will not accept.
Before report a bug, make sure you have:
Please pay attention on issues you submitted, because we maybe need more details. If no response anymore and we cannot reproduce it on current information, we will close it.
Please answer these questions before submitting your issue. Thanks!
Which version of ShardingSphere did you use?
5.5.0
Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-JDBC
Expected behavior
Logic SQL:
Excepted after encrypt operate SQL:
Actual behavior
Actual after encrypt operate SQL:
‘escape ?’ lost and number of parameters is 2 then Parameter index out of range (2 > number of parameters, which is 1)
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).