#2199 - ScalarTypeWrapper doesn't handle "nullValue" correctly

Handles the case for ScalarTypeConverter with custom null value and binding the custom null value (via query parameter, CallableSql parameter etc)
This commit is contained in:
Robin Bygrave committed 2021-03-18 10:03:35 +13:00
1 parent 1837c3443d
commit 2e16f05a70
3 files changed
+33 -8

No files matched your search

@@ -177,9 +177,6 @@ public class ScalarTypeWrapper<B, S> implements ScalarType<B> {
@SuppressWarnings("unchecked")
public Object toJdbcType(Object value) {
Object sv = converter.unwrapValue((B) value);
if (sv == null) {
return nullValue;
}
return scalarType.toJdbcType(sv);
}