Skip to content

DB2 Date Arithmetic #649

@s961212

Description

@s961212

Actual Behavior

execute the following SQL caused exception below
SELECT DOB + 1 YEARS as NewDOB FROM TABLE

Caused by:
net.sf.jsqlparser.parser.ParseException: Encountered " "AS" "AS "" at line 1, column 36.
Was expecting one of: ....

it is unable to use db2 Date arithmetic

Expected Behavior

Steps to Reproduce the Problem

Specifications

  • Version:
  • Platform:
  • Subsystem:

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