Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support parsing Snowflake style DATEADD() function with date part as string literal #11938

Closed
lukaseder opened this issue Jun 1, 2021 · 3 comments

Comments

@lukaseder
Copy link
Member

This is valid Snowflake SQL:

-- With a string literal
select dateadd('month', 1, date '2000-01-01')

-- With a date part
select dateadd(month, 1, date '2000-01-01')

We currently only support the date part version.

@lukaseder
Copy link
Member Author

See also: #11931

@lukaseder
Copy link
Member Author

It seems that all date parts can be used as string literals in Snowflake, e.g. also:

select extract('month' from date '2000-01-01')

lukaseder added a commit that referenced this issue Jun 1, 2021
@lukaseder
Copy link
Member Author

Fixed for jOOQ 3.15.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

1 participant