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

Oracle DATE type: milliseconds (second fractions) rounded in H2 but truncated in Oracle #3705

Open
maecval opened this issue Jan 13, 2023 · 0 comments

Comments

@maecval
Copy link

maecval commented Jan 13, 2023

Oracle DATE type rounded in H2 but truncated in Oracle

behaviour in H2

select SYSDATE, SYSTIMESTAMP from dual;
 
SYSDATE             | SYSTIMESTAMP  
-------------------------------------------------
2023-01-11 16:26:15 | 2023-01-11 16:26:14.971603+01

behaviour in Oracle DB

select SYSDATE, SYSTIMESTAMP from dual;
 
SYSDATE             | SYSTIMESTAMP 
-------------------------------------------------
2023-01-12 07:33:42 | 2023-01-12 07:33:42.829410000 +01:00

Please change H2 to truncate the milliseconds (decimal place of seconds) for DATE type when running in Oracle mode.

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

No branches or pull requests

1 participant