Derby
  1. Derby
  2. DERBY-4515

Document and clarify the use of DataValueDescriptor.setValue(InputStream,int)

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 10.6.1.0
    • Fix Version/s: 10.5.3.1, 10.6.1.0
    • Component/s: JDBC
    • Labels:
      None

      Description

      The usage of the method DataValueDescriptor.setValue(InputStream stream, int length) is unclear. The intended use seems to be to pass on the known length of an input stream set from the JDBC-layer (i.e. setBinaryStream).
      There seems to be two distinct cases:

      • the logical length of the stream is known
      • the logical length of the stream is not known

      Using -1 when the length is not known seems to be an established pattern.

        Issue Links

          Activity

          Gavin made changes -
          Workflow jira [ 12488336 ] Default workflow, editable Closed status [ 12799560 ]
          Kristian Waagan made changes -
          Status In Progress [ 3 ] Closed [ 6 ]
          Issue & fix info [Patch Available]
          Fix Version/s 10.5.3.1 [ 12314182 ]
          Resolution Fixed [ 1 ]
          Kristian Waagan made changes -
          Link This issue is depended upon by DERBY-4455 [ DERBY-4455 ]
          Kristian Waagan made changes -
          Issue & fix info [Patch Available]
          Kristian Waagan made changes -
          Kristian Waagan made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]
          Kristian Waagan created issue -

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development