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

Improvement on org.apache.derby.impl.jdbc.EmbedBlob#length()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 10.2.1.6
    • JDBC
    • None

    Description

      Now, org.apache.derby.impl.jdbc.EmbedBlob#length() method read out whole BinaryToRawStream to know exact length.

      On the other hand, BinaryToRawStream have some commented-out inplementation of having information for length.

      I think the information of lengh in BinaryToRawStream should be restored to be used in .org.apache.derby.impl.jdbc.EmbedBlob#length(), because read out whole stream can be expensive processing when streamed information was large.

      There exists a subject that reliability of lengh information in BinaryToRawStream is unknown.

      Attachments

        1. testLob4.java
          2 kB
          Tomohito Nakayama

        Activity

          People

            Unassigned Unassigned
            tmnk Tomohito Nakayama
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: