Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-922

setByteArrayInputStream being used in stead of setBytes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.0, 2.0.0-M2
    • 2.0.0-M3
    • None
    • None
    • DB2 on Windows
    • 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.

      Attachments

        1. OPENJPA-922-C.patch
          9 kB
          Barrett Jay Reed

        Activity

          People

            jpaheath Heath Thomann
            bjreed Barrett Jay Reed
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: