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

Simplify handling of maxPos in UpdatableBlobStream and ClobUpdatableReader

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 10.3.1.4, 10.4.1.3
    • Fix Version/s: 10.3.1.4, 10.4.1.3
    • Component/s: JDBC
    • Labels:
      None

      Description

      UpdatableBlobStream and ClobUpdatableReader have a maxPos field which tells when to stop reading the underlying stream regardless of whether or not end-of-stream has been reached. If there is no limit, maxPos is set to -1. If we instead set maxPos to infinity (Long.MAX_VALUE is close enough), the special handling of maxPos==-1 could be removed.

        Attachments

        1. maxpos.diff
          7 kB
          Knut Anders Hatlen
        2. maxpos.stat
          0.1 kB
          Knut Anders Hatlen

          Activity

            People

            • Assignee:
              knutanders Knut Anders Hatlen
              Reporter:
              knutanders Knut Anders Hatlen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: