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

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 10.3.3.0, 10.4.2.0, 10.5.1.1
    • 10.4.2.0, 10.5.1.1
    • JDBC, Network Client
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: