Skip to content

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.

1 participant