mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-18 17:15:02 +00:00
HHH-5952 : BlobTypeDescriptor.PRIMITIVE_ARRAY_BINDING binder does not unwrap value before binding
This commit is contained in:
parent
e109a4c892
commit
d456598a65
@ -72,7 +72,7 @@ public <X> BasicBinder<X> getBlobBinder(final JavaTypeDescriptor<X> javaTypeDesc
|
||||
@Override
|
||||
public void doBind(PreparedStatement st, X value, int index, WrapperOptions options)
|
||||
throws SQLException {
|
||||
st.setBytes( index, ( byte[] ) value );
|
||||
st.setBytes( index, javaTypeDescriptor.unwrap( value, byte[].class, options ) );
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user