Skip to content

[BUG] JSQLParser Version 5.3: NullPointerException when using withUnsupportedStatements #2300

@kasgilpofi

Description

@kasgilpofi

Failing SQL Feature:

NullPointerException when using .withUnsupportedStatements(true)

CCJSqlParserUtil.newParser(sql).withUnsupportedStatements(true).Statement();

Exception in thread "main" java.lang.NullPointerException: Cannot invoke "Object.toString()" because "stm" is null
	at net.sf.jsqlparser.parser.CCJSqlParser.Statement(CCJSqlParser.java:452)

SQL Example:

    SELECT EMP_ID,  EMP_NAME,
 	  CONNECT_BY_ROOT (EMP_NAME || '_' || EMP_ID) AS ROOT_MANAGER,
 	  SYS_CONNECT_BY_PATH(EMP_NAME, ' -> ') AS PATH
    FROM EMPLOYEES
    START WITH MANAGER_ID IS NULL
    CONNECT BY PRIOR EMP_ID = MANAGER_ID

Software Information:

  • JSqlParser version 5.3
  • Database Oracle

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