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

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: 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.

        Attachments

          Issue Links

            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: