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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.6.1.0
    • 10.5.3.1, 10.6.1.0
    • JDBC
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: