HHH-13557 : LocalTimeTest#writeThenNativeRead and OffsetTimeTest#writeThenNativeRead tests are failing on SQL Server

This commit is contained in:
Gail Badner 2019-08-12 19:38:09 -07:00
parent 3e17be9832
commit 1b06b76e17
2 changed files with 12 additions and 2 deletions

View File

@ -175,8 +175,13 @@ public class LocalTimeTest extends AbstractJavaTimeTypeTest<LocalTime, LocalTime
@Override @Override
protected Object getActualJdbcValue(ResultSet resultSet, int columnIndex) throws SQLException { protected Object getActualJdbcValue(ResultSet resultSet, int columnIndex) throws SQLException {
if ( TimeAsTimestampRemappingH2Dialect.class.equals( getRemappingDialectClass() ) ) {
return resultSet.getTimestamp( columnIndex ); return resultSet.getTimestamp( columnIndex );
} }
else {
return resultSet.getTime( columnIndex );
}
}
@Override @Override
@Test @Test

View File

@ -204,8 +204,13 @@ public class OffsetTimeTest extends AbstractJavaTimeTypeTest<OffsetTime, OffsetT
@Override @Override
protected Object getActualJdbcValue(ResultSet resultSet, int columnIndex) throws SQLException { protected Object getActualJdbcValue(ResultSet resultSet, int columnIndex) throws SQLException {
if ( TimeAsTimestampRemappingH2Dialect.class.equals( getRemappingDialectClass() ) ) {
return resultSet.getTimestamp( columnIndex ); return resultSet.getTimestamp( columnIndex );
} }
else {
return resultSet.getTime( columnIndex );
}
}
@Override @Override
@Test @Test