Skip to content

Commit 905ef65

Browse files
fix: Remove tests for (), since ParenthesedExpressionList will catch those too
1 parent 288b177 commit 905ef65

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2761,8 +2761,6 @@ GroupByElement GroupByColumnReferences():
27612761
{
27622762
<K_GROUP> <K_BY>
27632763
(
2764-
LOOKAHEAD(2) "(" token=")" { groupBy.setGroupByExpressions( new ParenthesedExpressionList() ); }
2765-
|
27662764
LOOKAHEAD(2) (
27672765
<K_GROUPING> <K_SETS> "("
27682766
list = GroupingSet() { groupBy.addGroupingSet(list); }
@@ -2792,8 +2790,6 @@ ExpressionList GroupingSet():
27922790
}
27932791
{
27942792
(
2795-
LOOKAHEAD(2) "(" token=")" { list = new ParenthesedExpressionList(); }
2796-
|
27972793
LOOKAHEAD(2) list = ParenthesedExpressionList()
27982794
|
27992795
expression = SimpleExpression() { list = new ExpressionList(expression); }
@@ -4666,8 +4662,6 @@ Execute Execute(): {
46664662
funcName=RelObjectNameList() { execute.setName(funcName); }
46674663

46684664
(
4669-
// ( "(" token=")" { execute.setExprList( new ParenthesedExpressionList()); })
4670-
// |
46714665
expressionList=ExpressionList() { execute.setExprList(expressionList); }
46724666
)?
46734667

src/test/resources/net/sf/jsqlparser/statement/select/oracle-tests/function06.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@
99
---
1010
call dbms_scheduler.auto_purge ( )
1111

12-
--@FAILURE: Encountered unexpected token: ")" ")" recorded first on Aug 3, 2021, 7:20:08 AM
12+
--@FAILURE: Encountered unexpected token: ")" ")" recorded first on Aug 3, 2021, 7:20:08 AM
13+
--@SUCCESSFULLY_PARSED_AND_DEPARSED first on 3 May 2023, 20:10:15

0 commit comments

Comments
 (0)