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 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
@AnEmortalKid
Copy link
Contributor

@wumpz this is also fixed , probably by #997

image

@wumpz
Copy link
Member

wumpz commented Jun 21, 2020

Thx.

@wumpz wumpz closed this as completed Jun 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants