Derby
  1. Derby
  2. DERBY-4524

Incorrect DROP FUNCTION logic in AccessTest's tearDown() method

    Details

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

      Description

      public void tearDown() throws Exception {
      Statement st = createStatement();
      super.tearDown();
      try

      { st.executeUpdate("DROP FUNCTION PADSTRING"); }

      catch (SQLException e)

      { // never mind. }

      }

      The DROP FUNCTION statement always fails with "No current connection" because super.tearDown(), which is called between createStatement() and executeUpdate(), closes the connection.

      1. removeTearDown.diff
        0.8 kB
        Knut Anders Hatlen

        Activity

        No work has yet been logged on this issue.

          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