wgy8283335 commented on a change in pull request #10381:
URL: https://github.com/apache/shardingsphere/pull/10381#discussion_r637336919
##########
File path:
shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-oracle/src/main/antlr4/imports/oracle/DMLStatement.g4
##########
@@ -101,15 +101,27 @@ multipleTableNames
;
select
- : unionClause
+ : selectSubquery forUpdateClause?
+ ;
+
+selectSubquery
+ : (queryBlock | selectUnionClause | parenthesisSelectSubquery)
orderByClause? rowLimitingClause
+ ;
+
+selectUnionClause
+ : ((queryBlock | parenthesisSelectSubquery) orderByClause?
rowLimitingClause) ((UNION ALL? | INTERSECT | MINUS) selectSubquery)+
Review comment:
Why put `((UNION ALL? | INTERSECT | MINUS) selectSubquery)+` behind of
the sentence?
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]