Skip to content

add support for SQL Server DateAdd() #160

@donshop11

Description

@donshop11

the following fails to parse:

select start_date where start_date > DATEADD(HH,-?, GETDATE())

Caused by: net.sf.jsqlparser.parser.ParseException: Encountered " <S_IDENTIFIER> "HH "" at line 1, column 46.

DATEADD() is describe here:
https://msdn.microsoft.com/en-us/library/ms186819.aspx

Metadata

Metadata

Assignees

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