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