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

With client, attempting to get the lob length after commit or connection close if there was a call to length() before commit does not throw an exception

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 10.3.3.0, 10.4.2.0, 10.5.1.1
    • Fix Version/s: 10.4.2.0, 10.5.1.1
    • Component/s: JDBC, Network Client
    • Labels:
      None

      Description

      Attempting to get call Blob/Clob.length() after commit or connection close does not fail if there was a previous call to length(). If no previous call was made an exception is thrown as expected.

      See attached program TestLobLength for repro with commit. If you comment out the two lines to get the length before the commit we get the expected exception.

        Attachments

        1. derby3574.patch
          8 kB
          Tiago R. Espinha
        2. derby3574-testfix.patch
          2 kB
          Tiago R. Espinha
        3. derby3574-testfix.patch
          1 kB
          Tiago R. Espinha
        4. derby3574-wtest.patch
          9 kB
          Tiago R. Espinha
        5. TestLobLength.java
          1 kB
          Katherine Marsden

          Issue Links

            Activity

              People

              • Assignee:
                espinha Tiago R. Espinha
                Reporter:
                kmarsden Katherine Marsden
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: