Derby
  1. Derby
  2. DERBY-5717

TableFunctionTest keeps reference to connection after completion

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 10.9.1.0
    • Fix Version/s: 10.9.1.0
    • Component/s: Test
    • Labels:
      None

      Description

      The test cases in TableFunctionTest store a DatabaseMetaData instance in an instance variable. The DatabaseMetaData instance references the default connection, and the connection can therefore not be gc'ed after the test has completed.

      1. d5717-1a.diff
        0.8 kB
        Knut Anders Hatlen

        Activity

        Knut Anders Hatlen created issue -
        Hide
        Knut Anders Hatlen added a comment -

        The attached patch clears the _databaseMetaData field in tearDown().

        Show
        Knut Anders Hatlen added a comment - The attached patch clears the _databaseMetaData field in tearDown().
        Knut Anders Hatlen made changes -
        Field Original Value New Value
        Attachment d5717-1a.diff [ 12524165 ]
        Knut Anders Hatlen made changes -
        Assignee Knut Anders Hatlen [ knutanders ]
        Issue & fix info Patch Available [ 10102 ]
        Knut Anders Hatlen made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        Kristian Waagan added a comment -

        +1

        Show
        Kristian Waagan added a comment - +1
        Hide
        Knut Anders Hatlen added a comment -

        Thanks, Kristian.
        Committed revision 1330194.

        Show
        Knut Anders Hatlen added a comment - Thanks, Kristian. Committed revision 1330194.
        Knut Anders Hatlen made changes -
        Status In Progress [ 3 ] Closed [ 6 ]
        Issue & fix info Patch Available [ 10102 ]
        Fix Version/s 10.9.0.0 [ 12316344 ]
        Resolution Fixed [ 1 ]
        Gavin made changes -
        Workflow jira [ 12663838 ] Default workflow, editable Closed status [ 12796688 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        18h 38m 1 Knut Anders Hatlen 25/Apr/12 09:58
        In Progress In Progress Closed Closed
        2h 14m 1 Knut Anders Hatlen 25/Apr/12 12:12

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development