Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Closed
@kasgilpofi

Description

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

        AltStyle によって変換されたページ (->オリジナル) /