LocalTimeTest#writeThenNativeRead and OffsetTimeTest#writeThenNativeRead tests are failing on SQL Server

Description

Assertion failures are similar to:

java.lang.AssertionError: Values written by Hibernate ORM should match the original value (same day, hour, ...) expected:<02:00:00> but was:<1900-01-01 02:00:00.0>

In both LocalTimeTest#getActualJdbcValue and OffsetTimeTest#getActualJdbcValue both return resultSet.getTimestamp( columnIndex ).

Changing both to return resultSet.getTime( columnIndex ) works on SQL Server, but fails on H2.

Environment

None

Status

Assignee

Gail Badner

Reporter

Gail Badner

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.4.3
5.4.2
5.4.4

Priority

Major
Configure