Skip to content

Conversation

Michael-A-McMahon
Copy link
Member

Fix for #4
The 21.1 Oracle JDBC Driver implements TIMESTAMP WITH LOCAL TIME ZONE to LocalDateTime conversion by returning a date time value in the database time zone. The correct behavior is to return the value in the time zone of the JVM. This branch works around that defect by having Oracle JDBC convert to a java.sql.Timestamp, and then converting from Timestamp to LocalDateTime at the R2DBC layer. Oracle JDBC's conversion to Timestamp is correct; It will adjust the database timezone value to the JVM timezone.

@Michael-A-McMahon Michael-A-McMahon linked an issue Mar 13, 2021 that may be closed by this pull request
@jeandelavarene
Copy link
Member

All tests in this branch are successful with r2dbc client in France and db in the US.

@jeandelavarene jeandelavarene merged commit b5ed8b6 into main Mar 13, 2021
@jeandelavarene jeandelavarene deleted the timestamp_local_tz_fix branch March 13, 2021 21:12
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.

TypeMappingTest fails
2 participants