strongduanmu commented on a change in pull request #12018:
URL: https://github.com/apache/shardingsphere/pull/12018#discussion_r696380463
##########
File path:
shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/statement/impl/MySQLDDLStatementSQLVisitor.java
##########
@@ -193,7 +194,7 @@ public ASTNode visitDropView(final DropViewContext ctx) {
@Override
public ASTNode visitCreateDatabase(final CreateDatabaseContext ctx) {
MySQLCreateDatabaseStatement result = new
MySQLCreateDatabaseStatement();
- result.setDatabaseName(ctx.schemaName().getText());
+
result.setDatabaseName(SQLUtil.getExactlyValue(ctx.schemaName().getText()));
Review comment:
@lanchengx Maybe use `StringLiteralValue` to handle backquote is better.
--
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]