[ 
https://issues.apache.org/jira/browse/OPENJPA-922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14596688#comment-14596688
 ] 

ASF subversion and git services commented on OPENJPA-922:
---------------------------------------------------------

Commit 1686945 from [~jpaheath] in branch 'openjpa/branches/1.2.x'
[ https://svn.apache.org/r1686945 ]

OPENJPA-922: Support for DB2 BIT DATA - back ported 2.0.x changes to 1.2.x

> setByteArrayInputStream being used in stead of setBytes
> -------------------------------------------------------
>
>                 Key: OPENJPA-922
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-922
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 1.2.0, 2.0.0-M2
>         Environment: DB2 on Windows
>            Reporter: B.J. Reed
>            Assignee: Michael Dick
>             Fix For: 2.0.0-M3
>
>         Attachments: OPENJPA-922-C.patch
>
>
> I have an Entity and one of its fields is defined as CHAR(16) FOR BIT DATA 
> NOT NULL.
> When trying to persist the entity, I get the following error:
>    Error: SQLCODE=-301, SQLSTATE=07006, SQLERRMC=1, DRIVER=3.50.152  
>    {prepstmnt 1386959531 INSERT INTO NULLID.TESTTBL (tkiid) VALUES (?)  
>    [params=(InputStream) java.io.ByteArrayInputStream@75947594]}
> It seems that the wrong kind of set is being used to set the parameter on the 
> prepared statement.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to