db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r902366 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/AccessTest.java
Date Sat, 23 Jan 2010 08:48:15 GMT
Author: kahatlen
Date: Sat Jan 23 08:48:14 2010
New Revision: 902366

URL: http://svn.apache.org/viewvc?rev=902366&view=rev
Log:
DERBY-4523: store.AccessTest fails on phoneME

Make sure tables are dropped between test cases.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/AccessTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/AccessTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/AccessTest.java?rev=902366&r1=902365&r2=902366&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/AccessTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/AccessTest.java
Sat Jan 23 08:48:14 2010
@@ -987,6 +987,9 @@
         JDBC.assertColumnNames(rs, expColNames);
         expRS = new String [][]{{"20"}};
         JDBC.assertFullResultSet(rs, expRS, true);
+
+        st.executeUpdate("drop table long1");
+        st.executeUpdate("drop table long2");
     }
 
     // regression test case for a Cloudscape era bug, 1552
@@ -1515,6 +1518,8 @@
         st.executeUpdate("insert into a values (2)");
 
         checkSpaceTable(st, "5");
+
+        st.executeUpdate("drop table a");
     }
     
     private void checkSpaceTable(Statement st, String expValue)
@@ -1791,6 +1796,8 @@
     // ----------------------------------------------------
     public void testQualifiers() throws Exception
     {
+        setAutoCommit(false);
+
         ResultSet rs = null;
         Statement st = createStatement();
 
@@ -1839,8 +1846,6 @@
         expRS = new String [][]{{"1", "10", "100"}, {"3", "30", "300"}};
         JDBC.assertFullResultSet(rs, expRS, true);
 
-        st.executeUpdate("DROP FUNCTION PADSTRING");
-
         rollback();
         st.close();
     }



Mime
View raw message