Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upparse sql contain count(if()) will throws JSQLParserException #959
Comments
|
JSqlParser does not (yet) support this kind of expressions within a count. |
version:
jsqlparser 3.1
database:
mysql5.7
sql:
select count(version=1 or null ) as versionCount from t_version
excepiton:
net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "(" "(",Was expecting one of:
"&",",",":"
which version can ignore this exception