Describe the bug
Cannot parse this statement select sum(c) from t group by ().
To Reproduce
Steps to reproduce the behavior:
net.sf.jsqlparser.parser.CCJSqlParserUtil.parse("select sum(c) from t group by ()")
- Exception -
Caused by: net.sf.jsqlparser.parser.ParseException: Encountered " "(" "( "" at line 1, column 31.
Expected behavior
Not sure if group by () is SQL compliant, but tested on SQL/PostgreSQL, they both support it.
System
- Database you are using - SQL/PostgreSQL
- Java Version - 1.8
- JSqlParser version - 4.0
Describe the bug
Cannot parse this statement
select sum(c) from t group by ().To Reproduce
Steps to reproduce the behavior:
net.sf.jsqlparser.parser.CCJSqlParserUtil.parse("select sum(c) from t group by ()")Caused by: net.sf.jsqlparser.parser.ParseException: Encountered " "(" "( "" at line 1, column 31.Expected behavior
Not sure if
group by ()is SQL compliant, but tested on SQL/PostgreSQL, they both support it.System