OpenJPA
  1. OpenJPA
  2. OPENJPA-922

setByteArrayInputStream being used in stead of setBytes

    Details

    • Type: Bug Bug
    • Status: Reopened
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.0, 2.0.0-M2
    • Fix Version/s: 1.2.4, 2.0.0-M3
    • Component/s: None
    • Labels:
      None
    • Environment:
      DB2 on Windows
    • Patch Info:
      Patch Available

      Description

      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.

        Activity

          People

          • Assignee:
            Heath Thomann
            Reporter:
            B.J. Reed
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development