Skip to content

[BUG] JSQLParser 4.9 & 5.0 : SQL parser report unexpected token #2067

@manbaum

Description

@manbaum

Failing SQL Feature:

  • JSqlParser report unexpected token.

SQL Example:

INSERT INTO TASK_DET ( TASK_ID, INNER_ID, JSON_OBJECT ) VALUES ( ?, ?, ? )

Detailed Exception:

net.sf.jsqlparser.JSQLParserException: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "," ","
    at line 1, column 41.

Was expecting one of:

    ")"
    "."

	at net.sf.jsqlparser.parser.CCJSqlParserUtil.parseStatement(CCJSqlParserUtil.java:352)
	at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:125)
	at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:91)
	at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:64)
	at util.gathersync.play.PlaySqlParser.playWeirdSql(PlaySqlParser.java:91)
	at util.gathersync.play.PlaySqlParser.main(PlaySqlParser.java:104)
Caused by: java.util.concurrent.ExecutionException: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "," ","
    at line 1, column 41.

Was expecting one of:

    ")"
    "."

Software Information:

  • JSqlParser 4.9 and 5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions