Skip to content

[BUG] JSQLParser Version 4.8: DB2 : CURRENT TIMEZONE parsing failure #1949

Closed
@ashutoshk2206

Description

@ashutoshk2206

Always check against the Latest SNAPSHOT of JSQLParser and the Syntax Diagram

Failing SQL Feature:

SELECT * FROM TABLE1 where COL_WITH_TIMESTAMP <= CURRENT TIMESTAMP - CURRENT TIMEZONE

Above query validation is failing with below error
"Cannot parse statement: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "ZONE" "ZONE"\n at line 1, column 177.\n\nWas expecting one of:\n\n "::"\n "["\n "^"\n \n <ST_SEMICOLON>\n"

Software Information:

  • JSqlParser version 4.8
  • Database (IBM DB2 )

Tips:

Please write in English and avoid Screenshots (as we can't copy and paste content from it).
Try your example online with the latest JSQLParser and share the link in the error report.
Do provide Links or References to the specific Grammar and Syntax you are trying to use.

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