RaigorJiang commented on code in PR #26079:
URL: https://github.com/apache/shardingsphere/pull/26079#discussion_r1221939660
##########
test/it/parser/src/main/resources/case/ddl/create-table.xml:
##########
@@ -17,6 +17,12 @@
-->
<sql-parser-test-cases>
+ <create-table sql-case-id="create_table_with_backtick">
+ <table name="t_order" start-delimiter="`" end-delimiter="`"
start-index="13" stop-index="23" />
Review Comment:
Hi @zihaoAK47
There is a method `getQuotedContent` in `IdentifierValue`, which is used to
obtain the complete content in the quotation marks. Do you think this method
can meet the requirements?
```java
public static String getQuotedContent(final String text) {
if (Strings.isNullOrEmpty(text)) {
return text;
}
QuoteCharacter quoteCharacter =
QuoteCharacter.getQuoteCharacter(text);
if (QuoteCharacter.NONE == quoteCharacter) {
return text.trim();
}
return text.substring(1, text.length() - 1);
}
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]