openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dick <michael.d.d...@gmail.com>
Subject Re: question about the useSetBytesForBlobs field
Date Thu, 12 Feb 2009 19:07:11 GMT
Hi B.J.

I'd think that the default should be to use setBytes() unless there's a
known issue with a specific JDBC driver or database vendor that requires a
different method call.

Is there a specific problem with calling setBinaryStream (the alternative to
setBytes) with DB2?

Regards,
-mike

On Thu, Feb 12, 2009 at 12:29 PM, B.J. Reed <bjreed2@gmail.com> wrote:

> Hi, I've been looking at the DBDictionary class at a setBytes() issue and I
> have a question about the useSetBytesForBlobs field.  Seems that some
> Dictionaries set this to true and some leave it as the default of false.
>  The only thing this field does is determine if DBDictionary.setBytes()
> should use preparedStmt.setBytes() or use a ByteArrayInputStream to
> setBytes() regardless of whether the field is a small byte[] or a blob.
> The question is this...does anyone remember the history of this field? or
> why openJPA does setBytes() differently for different DB's?
>
> Thanks,
> --B.J. Reed
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message