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

duanzhengqiang 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 0761411  fix issues 10403 (#10884)
0761411 is described below

commit 0761411e4ab22fb066da256d39f4886321c4d184
Author: sizzlecar <[email protected]>
AuthorDate: Wed Jun 23 08:41:22 2021 +0800

    fix issues 10403 (#10884)
    
    * fix issues 10403
    
    * keep a uniform style for naming sql-case-id
    
    Co-authored-by: [email protected] <guantingting5479>
    Co-authored-by: carl.che <[email protected]>
---
 .../src/main/resources/case/tcl/end.xml            | 23 +++++++++++++++++++++
 .../main/resources/case/tcl/start-transaction.xml  | 24 ++++++++++++++++++++++
 .../src/main/resources/sql/supported/tcl/end.xml   | 23 +++++++++++++++++++++
 .../sql/supported/tcl/start-transcation.xml        | 24 ++++++++++++++++++++++
 4 files changed, 94 insertions(+)

diff --git 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/main/resources/case/tcl/end.xml
 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/main/resources/case/tcl/end.xml
new file mode 100644
index 0000000..975850d
--- /dev/null
+++ 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/main/resources/case/tcl/end.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<sql-parser-test-cases>
+    <commit sql-case-id="end" />
+    <commit sql-case-id="end_prepare" />
+    <commit sql-case-id="end_in_pg" />
+</sql-parser-test-cases>
diff --git 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/main/resources/case/tcl/start-transaction.xml
 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/main/resources/case/tcl/start-transaction.xml
new file mode 100644
index 0000000..3bcfa99
--- /dev/null
+++ 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/main/resources/case/tcl/start-transaction.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<sql-parser-test-cases>
+    <begin-transaction sql-case-id="start_transaction" />
+    <begin-transaction sql-case-id="start_read_committed" />
+    <begin-transaction sql-case-id="start_read_only" />
+    <begin-transaction sql-case-id="start_with_transaction_mode" />
+</sql-parser-test-cases>
diff --git 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/main/resources/sql/supported/tcl/end.xml
 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/main/resources/sql/supported/tcl/end.xml
new file mode 100644
index 0000000..0516b64
--- /dev/null
+++ 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/main/resources/sql/supported/tcl/end.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<sql-cases>
+    <sql-case id="end" value="END" db-types="PostgreSQL" />
+    <sql-case id="end_prepare" value="END PREPARED 'transaction1'" 
db-types="PostgreSQL" />
+    <sql-case id="end_in_pg" value="END TRANSACTION AND NO CHAIN" 
db-types="PostgreSQL" />
+</sql-cases>
diff --git 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/main/resources/sql/supported/tcl/start-transcation.xml
 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/main/resources/sql/supported/tcl/start-transcation.xml
new file mode 100644
index 0000000..bb3aff5
--- /dev/null
+++ 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/main/resources/sql/supported/tcl/start-transcation.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<sql-cases>
+    <sql-case id="start_transaction" value="START TRANSACTION" 
db-types="PostgreSQL" />
+    <sql-case id="start_read_committed" value="START TRANSACTION ISOLATION 
LEVEL READ COMMITTED" db-types="PostgreSQL" />
+    <sql-case id="start_read_only" value="START TRANSACTION READ ONLY" 
db-types="PostgreSQL" />
+    <sql-case id="start_with_transaction_mode" value="START TRANSACTION 
ISOLATION LEVEL READ COMMITTED" db-types="PostgreSQL" />
+</sql-cases>

Reply via email to