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

LAST_DAY function and other changes #3761

Merged
merged 5 commits into from
Mar 20, 2023
Merged

Conversation

katzyn
Copy link
Contributor

@katzyn katzyn commented Mar 19, 2023

  1. An implementation of Oracle/MySQL-style LAST_DAY function. DB2 and HSQLDB also have a similar function with some differences in data type of result.
  2. SYSDATE now rounds fractional seconds down for better compatibility with Oracle (see Oracle DATE type: milliseconds (second fractions) rounded in H2 but truncated in Oracle #3705).
  3. Static caches of TIME values for every hour (TIME '00:00:00', TIME '01:00:00', …) and TINYINT values are introduced. Their classes are initialized by regular JVMs only when these data types are actually used by application, it means this small amount of memory will not be wasted when these data types aren't used.

@katzyn katzyn merged commit d8af652 into h2database:master Mar 20, 2023
@katzyn katzyn deleted the datetime branch March 20, 2023 10:01
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