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

Add support for standard interval literals with precision #3481

Merged
merged 4 commits into from
Apr 9, 2022

Conversation

katzyn
Copy link
Contributor

@katzyn katzyn commented Apr 9, 2022

H2 allowed to specify leading field precision and fractional seconds precision only in interval data types, but not in literals of this data type.

In the SQL Standard, interval literals may also have these parameters and they are really required for some other database systems for large values.

This PR doesn't modify the declared data type of literals like INTERVAL '10' YEAR. It should be INTERVAL YEAR, not INTERVAL YEAR(18). I think we need to fix that, but only in the next series of releases.

@katzyn katzyn merged commit e82a9e5 into h2database:master Apr 9, 2022
@katzyn katzyn deleted the interval branch April 9, 2022 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant