★ wanayoo — archive 1999 https://github.com/JSQLParser/JSqlParser/issues/959Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parse sql contain count(if()) will throws JSQLParserException #959

Open
cc69001210 opened this issue Mar 11, 2020 · 1 comment
Open

parse sql contain count(if()) will throws JSQLParserException #959

cc69001210 opened this issue Mar 11, 2020 · 1 comment

Comments

@cc69001210
Copy link

@cc69001210 cc69001210 commented Mar 11, 2020

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

@wumpz
Copy link
Member

@wumpz wumpz commented Mar 12, 2020

JSqlParser does not (yet) support this kind of expressions within a count.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.