Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-3871

EmbedBlob.setBytes returns incorrect insertion count

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.5.1.1
    • Fix Version/s: 10.4.2.1, 10.5.1.1
    • Component/s: JDBC
    • Labels:
      None

      Description

      EmbedBlob.setBytes returns invalid insertion counts. According to the JavaDoc, it should return the number of bytes inserted. The current implementation seems to return the position in the Blob after the bytes have been written.

        Attachments

        1. derby-3871-2a-loop_fix.diff
          0.8 kB
          Kristian Waagan
        2. derby-3871-1a_insertion_count.diff
          10 kB
          Kristian Waagan
        3. BlobSetBytesTestRepro.diff
          4 kB
          Kristian Waagan

          Activity

            People

            • Assignee:
              kristwaa Kristian Waagan
              Reporter:
              kristwaa Kristian Waagan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: