Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INSERT & UPDATE do not support escape character \ #1674

Closed
joooohnli opened this issue Dec 25, 2018 · 2 comments
Closed

INSERT & UPDATE do not support escape character \ #1674

joooohnli opened this issue Dec 25, 2018 · 2 comments

Comments

@joooohnli
Copy 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 more than 7 days and we cannot reproduce it on current information, we will close it.

Please answer these questions before submitting your issue. Thanks!

Which version of Sharding-Sphere did you use?

3.1.0.M1

Which project did you use? Sharding-JDBC or Sharding-Proxy?

Sharding-Proxy

Expected behavior

INSERT & UPDATE support escape character \

Actual behavior

INSERT & UPDATE do not support escape character
while SELECT works well.

Reason analyze (If you can)

Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.

mysql> insert into test(name) values ('\'');
ERROR 3054 (HY000): Unknown exception: Illegal input, unterminated '''.
mysql> update test set name='\'' where id=1;
ERROR 3054 (HY000): Unknown exception: Illegal input, unterminated '''.

Example codes for reproduce this issue (such as a github link).

@codefairy08
Copy link
Contributor

mismatch string with escape character

codefairy08 added a commit to codefairy08/incubator-shardingsphere that referenced this issue Mar 19, 2019
@terrymanu terrymanu modified the milestones: 4.0.0.M1, 4.0.0.M2 Mar 20, 2019
@terrymanu terrymanu modified the milestones: 4.0.0.M2, 4.0.0.M1 Mar 28, 2019
@codefairy08
Copy link
Contributor

fixed at #2038

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants