[
https://issues.apache.org/jira/browse/OPENJPA-922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678274#action_12678274
]
Milosz Tylenda commented on OPENJPA-922:
----------------------------------------
Since the test case is likely to fail on databases other then DB2 (specific
columnDefinition), it is a good idea to run it only when DB2 is connected. A
few ideas:
1. Use the annotation described in OPENJPA-942.
2. Test whether DBDictionary is an instance of DB2Dictionary. Some other tests
already use that approach.
> 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
> Environment: DB2 on Windows
> Reporter: B.J. Reed
> Assignee: B.J. Reed
> Fix For: 1.2.2, 1.3.0, 2.0.0
>
> Attachments: OPENJPA-922-B.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.bytearrayinputstr...@75947594]}
> It seems that the wrong kind of set is being used to set the parameter on the
> prepared statement.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.