db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] Created: (DERBY-4524) Incorrect DROP FUNCTION logic in AccessTest's tearDown() method
Date Fri, 22 Jan 2010 21:30:21 GMT
Incorrect DROP FUNCTION logic in AccessTest's tearDown() method
---------------------------------------------------------------

                 Key: DERBY-4524
                 URL: https://issues.apache.org/jira/browse/DERBY-4524
             Project: Derby
          Issue Type: Bug
          Components: Test
    Affects Versions: 10.6.0.0
            Reporter: Knut Anders Hatlen


    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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message