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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.6.1.0
    • 10.6.1.0
    • Test
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: