Open FlyingZC opened 2 years ago
It looks like not very important issue, I just set it as good amateur issue
.
Please feel free to pick up this issue if anybody interest it.
Hi, I want to try it.
@chakkk309 Welcome, I will assign this issue to you.
Hello , this issue has not received a reply for several days. This issue is supposed to be closed.
Hi @chakkk309 , Is there an update?
Hi @chakkk309 , Is there an update?
Not yet, please feel free to pick it up.
Not yet, please feel free to pick it up.
OK, thank you!
Bug Report
Which version of ShardingSphere did you use?
master
Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-JDBC
Expected behavior
keep correct quotation marks.
Actual behavior
When I want to support create table sql with multiple back quotes, like
CREATE TABLE ```ab````cd``` (i INT);
,the table name is resolved toabcd
.Reason analyze (If you can)
org.apache.shardingsphere.sql.parser.sql.common.value.identifier.IdentifierValue#IdentifierValue(java.lang.String)
uses the methodorg.apache.shardingsphere.sql.parser.sql.common.util.SQLUtil#getExactlyValue(java.lang.String)
to handle table name,this method removes all back quotes.Before:
After:
The execution result of this sql in mysql:
StackTrace:
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).