Skip to content

Major Issue in 4.4, FROM Keyword is not Mandatory #1514

Description

@bala28

Describe the bug
FROM Keyword is removed from SQL and JSQLParser is not complaining about syntax.

To Reproduce
Steps to reproduce the behavior:

  1. sqlStatement = "SELECT SYSDATE DUAL"
  2. Parsing this SQL using JSqlParser with this statements ( final Statement statement = CCJSqlParserUtil.parse(sqlStatement);)
  3. No Exception

Expected behavior
Exception must be thrown for invalid syntax as FROM is missing.

System

  • Oracle
  • Java 17
  • JSqlParser 4.4

Note:: "FROM" keyword validation is working in 4.3

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