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

        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().
        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.

          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