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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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.

        Attachments

        1. removeTearDown.diff
          0.8 kB
          Knut Anders Hatlen

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: