mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-12 22:41:35 +00:00
#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:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user