Java 8 fix

This commit is contained in:
lukaseder 2018-02-28 16:42:12 +01:00
parent 9c687202fc
commit 052872de87
2 changed files with 6 additions and 0 deletions

View File

@ -421,10 +421,12 @@ public class DefaultRecordMapper<R extends Record, E> implements RecordMapper<R,
throw new MappingException("No matching constructor found on type " + type + " for row type " + rowType);
}
private List<String> collectParameterNames(Parameter[] parameters) {
return Arrays.stream(parameters).map(Parameter::getName).collect(Collectors.toList());
}
@Override
public final E map(R record) {
if (record == null) {

View File

@ -1314,6 +1314,8 @@ final class DiagnosticsResultSet extends DefaultResultSet {
super.updateNClob(columnLabel, reader);
}
@Override
public void updateObject(int columnIndex, Object x, SQLType targetSqlType, int scaleOrLength) throws SQLException {
checkPrimitive();
@ -1337,4 +1339,6 @@ final class DiagnosticsResultSet extends DefaultResultSet {
checkPrimitive();
super.updateObject(columnLabel, x, targetSqlType);
}
}