I want to parse the below query .but i am getting an exception
"Select count(distinct id) from AB"
StackTrace is given below
net.sf.jsqlparser.JSQLParserException
at net.sf.jsqlparser.parser.CCJSqlParserManager.parse(CCJSqlParserManager.java:40)
at net.sf.jsqlparser.test.mytest.Mypareser.parse(Mypareser.java:118)
at net.sf.jsqlparser.test.mytest.Mypareser.main(Mypareser.java:110)
Caused by: net.sf.jsqlparser.parser.ParseException: Encountered "( distinct" at line 1, column 14.
Can anyone help me to solve this??
Thanks in advance
Gokul
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all
I want to parse the below query .but i am getting an exception
"Select count(distinct id) from AB"
StackTrace is given below
net.sf.jsqlparser.JSQLParserException
at net.sf.jsqlparser.parser.CCJSqlParserManager.parse(CCJSqlParserManager.java:40)
at net.sf.jsqlparser.test.mytest.Mypareser.parse(Mypareser.java:118)
at net.sf.jsqlparser.test.mytest.Mypareser.main(Mypareser.java:110)
Caused by: net.sf.jsqlparser.parser.ParseException: Encountered "( distinct" at line 1, column 14.
Can anyone help me to solve this??
Thanks in advance
Gokul
I'll look at that
I have the same problem:
"Select count(distinct id) from AB"
JSQLParser tells me that this query is wrong, and it doesn't…
I'll upload version 0.6.4, which should solve the problem