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

zhaojinchao 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 176b9253565 Fix Oracle BaseRule.g4 error. (#28395)
176b9253565 is described below

commit 176b92535652f9c135795552862c416eab733e8d
Author: Cong Hu <[email protected]>
AuthorDate: Fri Sep 8 17:41:53 2023 +0800

    Fix Oracle BaseRule.g4 error. (#28395)
---
 .../dialect/oracle/src/main/antlr4/imports/oracle/BaseRule.g4  | 10 +++++++++-
 .../shardingsphere/sql/parser/autogen/OracleStatement.g4       |  2 +-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git 
a/parser/sql/dialect/oracle/src/main/antlr4/imports/oracle/BaseRule.g4 
b/parser/sql/dialect/oracle/src/main/antlr4/imports/oracle/BaseRule.g4
index 3846dfdaa69..ce03a2599b1 100644
--- a/parser/sql/dialect/oracle/src/main/antlr4/imports/oracle/BaseRule.g4
+++ b/parser/sql/dialect/oracle/src/main/antlr4/imports/oracle/BaseRule.g4
@@ -884,6 +884,10 @@ caseElse
     : ELSE expr
     ;
 
+subquery
+    : matchNone
+    ;
+
 orderByClause
     : ORDER SIBLINGS? BY orderByItem (COMMA_ orderByItem)*
     ;
@@ -996,6 +1000,10 @@ ignoredIdentifiers
     : ignoredIdentifier (COMMA_ ignoredIdentifier)*
     ;
 
+matchNone
+    : 'Default does not match anything'
+    ;
+
 hashSubpartitionQuantity
     : NUMBER
     ;
@@ -1691,7 +1699,7 @@ existsCondition
     ;
 
 inCondition
-    : (expr NOT? IN LP_ (expressionList | subquery) RP_)
+    : (expr NOT? IN LP_ (expressionList | subquery) RP_) 
     | (exprList NOT? IN LP_ ((expressionList (COMMA_ expressionList)*) | 
subquery) RP_)
     ;
 
diff --git 
a/parser/sql/dialect/oracle/src/main/antlr4/org/apache/shardingsphere/sql/parser/autogen/OracleStatement.g4
 
b/parser/sql/dialect/oracle/src/main/antlr4/org/apache/shardingsphere/sql/parser/autogen/OracleStatement.g4
index 31c8bcd7b6f..91b12da4461 100644
--- 
a/parser/sql/dialect/oracle/src/main/antlr4/org/apache/shardingsphere/sql/parser/autogen/OracleStatement.g4
+++ 
b/parser/sql/dialect/oracle/src/main/antlr4/org/apache/shardingsphere/sql/parser/autogen/OracleStatement.g4
@@ -17,7 +17,7 @@
 
 grammar OracleStatement;
 
-import DDLStatement, TCLStatement, DCLStatement, DALStatement, PLSQL;
+import DMLStatement, DDLStatement, TCLStatement, DCLStatement, DALStatement, 
PLSQL;
 
 execute
     : (select

Reply via email to