HHH-13557 : LocalTimeTest#writeThenNativeRead and OffsetTimeTest#writeThenNativeRead tests are failing on SQL Server
(cherry picked from commit 1b06b76e17
)
This commit is contained in:
parent
86385bdce3
commit
e9dc757c54
|
@ -175,8 +175,13 @@ public class LocalTimeTest extends AbstractJavaTimeTypeTest<LocalTime, LocalTime
|
|||
|
||||
@Override
|
||||
protected Object getActualJdbcValue(ResultSet resultSet, int columnIndex) throws SQLException {
|
||||
if ( TimeAsTimestampRemappingH2Dialect.class.equals( getRemappingDialectClass() ) ) {
|
||||
return resultSet.getTimestamp( columnIndex );
|
||||
}
|
||||
else {
|
||||
return resultSet.getTime( columnIndex );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@Test
|
||||
|
|
|
@ -204,8 +204,13 @@ public class OffsetTimeTest extends AbstractJavaTimeTypeTest<OffsetTime, OffsetT
|
|||
|
||||
@Override
|
||||
protected Object getActualJdbcValue(ResultSet resultSet, int columnIndex) throws SQLException {
|
||||
if ( TimeAsTimestampRemappingH2Dialect.class.equals( getRemappingDialectClass() ) ) {
|
||||
return resultSet.getTimestamp( columnIndex );
|
||||
}
|
||||
else {
|
||||
return resultSet.getTime( columnIndex );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue