You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by la...@apache.org on 2022/04/02 10:02:51 UTC

[shardingsphere] branch master updated: Add SQL parser test case for `ALTER INSTANCE instanceId SET XA_RECOVERY_NODES = value1, value2.` (#16365)

This is an automated email from the ASF dual-hosted git repository.

lanchengxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 843c7ca  Add SQL parser test case for `ALTER INSTANCE instanceId SET XA_RECOVERY_NODES = value1,value2.` (#16365)
843c7ca is described below

commit 843c7ca0c3414d9ececf558638d9af5525477273
Author: Amulya <am...@gmail.com>
AuthorDate: Sat Apr 2 15:31:37 2022 +0530

    Add SQL parser test case for `ALTER INSTANCE instanceId SET XA_RECOVERY_NODES = value1,value2.` (#16365)
    
    * Add sql parser Test case
    
    * sql parser test for alter-instance-xa-recovery-nodes
    
    * Add a new test case in common.xml
    
    * Corrected the new test case in common.xml
    
    * add test case for alter-instance-xa-recovery-nodes
---
 .../shardingsphere-parser-test/src/main/resources/case/ral/common.xml    | 1 +
 .../src/main/resources/sql/supported/ral/common.xml                      | 1 +
 2 files changed, 2 insertions(+)

diff --git a/shardingsphere-test/shardingsphere-parser-test/src/main/resources/case/ral/common.xml b/shardingsphere-test/shardingsphere-parser-test/src/main/resources/case/ral/common.xml
index e3a7ad7..c63140a 100644
--- a/shardingsphere-test/shardingsphere-parser-test/src/main/resources/case/ral/common.xml
+++ b/shardingsphere-test/shardingsphere-parser-test/src/main/resources/case/ral/common.xml
@@ -102,6 +102,7 @@
     <apply-distsql sql-case-id="apply-distsql"/>
     <discard-distsql sql-case-id="discard-distsql"/>
     <alter-instance sql-case-id="alter-instance-xa-recovery-nodes" instance-id="1.2.3.4@3307"  key="XA_RECOVERY_NODES" value="1.2.3.4@3308"/>
+    <alter-instance sql-case-id="alter-instance-xa-recovery-nodes-with-multiple-values" instance-id="1.2.3.4@3307"  key="XA_RECOVERY_NODES" value="1.2.3.4@3308,1.2.3.4@3307"/>
     <import-schema-config sql-case-id="import-schema-config">
         <filePath>/yaml/config-sharding.yaml</filePath>
     </import-schema-config>
diff --git a/shardingsphere-test/shardingsphere-parser-test/src/main/resources/sql/supported/ral/common.xml b/shardingsphere-test/shardingsphere-parser-test/src/main/resources/sql/supported/ral/common.xml
index 4f6558a..fc90f1d 100644
--- a/shardingsphere-test/shardingsphere-parser-test/src/main/resources/sql/supported/ral/common.xml
+++ b/shardingsphere-test/shardingsphere-parser-test/src/main/resources/sql/supported/ral/common.xml
@@ -53,5 +53,6 @@
     <distsql-case id="apply-distsql" value="APPLY DISTSQL" />
     <distsql-case id="discard-distsql" value="DISCARD DISTSQL" />
     <distsql-case id="alter-instance-xa-recovery-nodes" value="ALTER INSTANCE 1.2.3.4@3307 SET XA_RECOVERY_NODES=1.2.3.4@3308" />
+    <distsql-case id="alter-instance-xa-recovery-nodes-with-multiple-values" value="ALTER INSTANCE 1.2.3.4@3307 SET XA_RECOVERY_NODES=1.2.3.4@3308,1.2.3.4@3307 " />
     <distsql-case id="import-schema-config" value="IMPORT SCHEMA CONFIG FILE='/yaml/config-sharding.yaml'" />
 </sql-cases>