From ed650481edc0052f1fd0683e1f1534251a7a674e Mon Sep 17 00:00:00 2001 From: ChenJiaHao Date: Wed, 22 Nov 2023 16:44:18 +0800 Subject: [PATCH] Fix statement visitor of DistSQL ALTER SQL_TRANSLATOR RULE (#29126) --- .../parser/core/SQLTranslatorDistSQLStatementVisitor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sql-translator/distsql/parser/src/main/java/org/apache/shardingsphere/sqltranslator/distsql/parser/core/SQLTranslatorDistSQLStatementVisitor.java b/kernel/sql-translator/distsql/parser/src/main/java/org/apache/shardingsphere/sqltranslator/distsql/parser/core/SQLTranslatorDistSQLStatementVisitor.java index 5225d94380507..9117042f7eb5f 100644 --- a/kernel/sql-translator/distsql/parser/src/main/java/org/apache/shardingsphere/sqltranslator/distsql/parser/core/SQLTranslatorDistSQLStatementVisitor.java +++ b/kernel/sql-translator/distsql/parser/src/main/java/org/apache/shardingsphere/sqltranslator/distsql/parser/core/SQLTranslatorDistSQLStatementVisitor.java @@ -44,7 +44,7 @@ public ASTNode visitShowSQLTranslatorRule(final ShowSQLTranslatorRuleContext ctx @Override public ASTNode visitAlterSQLTranslatorRule(final AlterSQLTranslatorRuleContext ctx) { return new AlterSQLTranslatorRuleStatement(getIdentifierValue(ctx.sqlTranslatorRuleDefinition().providerName()), getProperties(ctx.sqlTranslatorRuleDefinition().propertiesDefinition()), - null == ctx.sqlTranslatorRuleDefinition().useOriginalSQLDefinition().useOriginalSQL() ? null + null == ctx.sqlTranslatorRuleDefinition().useOriginalSQLDefinition() ? null : Boolean.valueOf(getIdentifierValue(ctx.sqlTranslatorRuleDefinition().useOriginalSQLDefinition().useOriginalSQL()))); }