Derby
  1. Derby
  2. DERBY-2652

Clob.setCharacterStream differs between embedded and client driver

    Details

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

      Description

      Clob.setCharacterStream behaves differently depending on whether you use the embedded or the client driver.
      Sample output from the repro:

      (embedded) Initial : 123456789
      (embedded) After : 12__56789

      (client) Initial : 123456789
      (client) After : 12__

      As can be seen, the client driver truncates the Clob value when it writes to it, whereas the embedded driver does not and instead replaces existing characters with those written to the character stream.

      (BTW: I know the title is not perfectly accurate, but it got so long when explaining that it is when you actually write to the stream returned by Clob.setCharacterStream the result differs.)

        Issue Links

          Activity

          Kristian Waagan created issue -
          Kristian Waagan made changes -
          Field Original Value New Value
          Attachment ClobSetCharacterStreamTest.java [ 12357395 ]
          Kristian Waagan made changes -
          Link This issue is part of DERBY-310 [ DERBY-310 ]
          Kristian Waagan made changes -
          Link This issue is related to DERBY-2346 [ DERBY-2346 ]
          Kristian Waagan made changes -
          Link This issue is blocked by DERBY-572 [ DERBY-572 ]
          Kristian Waagan made changes -
          Link This issue is blocked by DERBY-572 [ DERBY-572 ]
          Kristian Waagan made changes -
          Link This issue is related to DERBY-572 [ DERBY-572 ]
          Kristian Waagan made changes -
          Affects Version/s 10.2.2.0 [ 12312027 ]
          Kristian Waagan made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Fix Version/s 10.3.0.0 [ 12310800 ]
          Gavin made changes -
          Workflow jira [ 12404029 ] Default workflow, editable Closed status [ 12800635 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development