★ wanayoo — archive 1999 https://github.com/JSQLParser/JSqlParser/issues/778Nouvelle 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

Query parsing error. #778

Closed
hangum opened this issue Apr 12, 2019 · 2 comments
Closed

Query parsing error. #778

hangum opened this issue Apr 12, 2019 · 2 comments
Assignees

Comments

@hangum
Copy link

@hangum hangum commented Apr 12, 2019

Query operating on Oracle 12c

Statement stmt = CCJSqlParserUtil.parse(
"update TEST " +
"set cd = '3' " +
"where (cd, bcd) in (('1', ' '), ('2', ' '))")
;

An error occurs as follows:

net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "," ","
at line 3, column 12.

Was expecting one of:

"&"
"&&"
")"
"::"
"<<"
">>"
"AND"
"COLLATE"
"^"
"|"

at net.sf.jsqlparser.parser.CCJSqlParser.generateParseException(CCJSqlParser.java:20583)
at net.sf.jsqlparser.parser.CCJSqlParser.jj_consume_token(CCJSqlParser.java:20433)
at net.sf.jsqlparser.parser.CCJSqlParser.AndExpression(CCJSqlParser.java:6724)
at net.sf.jsqlparser.parser.CCJSqlParser.OrExpression(CCJSqlParser.java:6687)
at net.sf.jsqlparser.parser.CCJSqlParser.Expression(CCJSqlParser.java:6658)
at net.sf.jsqlparser.parser.CCJSqlParser.WhereClause(CCJSqlParser.java:5675)
at net.sf.jsqlparser.parser.CCJSqlParser.Update(CCJSqlParser.java:943)
at net.sf.jsqlparser.parser.CCJSqlParser.SingleStatement(CCJSqlParser.java:127)
at net.sf.jsqlparser.parser.CCJSqlParser.Statement(CCJSqlParser.java:70)
at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:36)
... 24 more

Caused by:

@wumpz wumpz self-assigned this Feb 2, 2020
@wumpz wumpz added this to To do in next things to do via automation Feb 2, 2020
@AnEmortalKid
Copy link
Contributor

@AnEmortalKid AnEmortalKid commented Jun 21, 2020

@wumpz this is also fixed , probably by #997

image

@wumpz
Copy link
Member

@wumpz wumpz commented Jun 21, 2020

Thx.

@wumpz wumpz closed this Jun 21, 2020
next things to do automation moved this from To do to Done Jun 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Linked pull requests

Successfully merging a pull request may close this issue.

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