Skip to content

[BUG] JSQLParser Version : Postgres : BETWEEN with Cast #2288

@davyboyhayes

Description

@davyboyhayes

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

Failing SQL Feature:

  • Using a between expression, with cast doesn't parse correctly

SQL Example:

  • Simplified Query Example, focusing on the failing feature
SELECT * FROM tbl WHERE
day BETWEEN
  CAST(CAST((NOW() + INTERVAL '-30 day') AS date) AS timestamptz)
AND
  CAST(CAST((NOW() + INTERVAL '-1 day') AS date) AS timestamptz);
Image

Software Information:

  • JSqlParser 5.4-snapshot 2ff7342
  • PostgreSQL

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions