HHH-5952 : BlobTypeDescriptor.PRIMITIVE_ARRAY_BINDING binder does not unwrap value before binding

This commit is contained in:
Gail Badner 2011-03-08 13:52:34 -08:00
parent e109a4c892
commit d456598a65

View File

@ -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 ) );
}
};
}