db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o..@apache.org
Subject svn commit: r823066 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/XplainStatisticsTest.java
Date Thu, 08 Oct 2009 06:42:55 GMT
Author: ole
Date: Thu Oct  8 06:42:54 2009
New Revision: 823066

URL: http://svn.apache.org/viewvc?rev=823066&view=rev
Log:
DERBY-4188 - "XplainStatisticsTest" fails on phoneME w/ 'The exception 'java.sql.SQLException:
'RS_ID' is not a column in table or VTI 'XPLTEST.SYSXPLAIN_RESULTSETS'.' was thrown while
evaluating an expression.'
Do cleanup in testcases to make the testcases independent of running order. 

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/XplainStatisticsTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/XplainStatisticsTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/XplainStatisticsTest.java?rev=823066&r1=823065&r2=823066&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/XplainStatisticsTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/XplainStatisticsTest.java
Thu Oct  8 06:42:54 2009
@@ -1085,6 +1085,8 @@
         throws SQLException
     {
         Statement s = createStatement();
+        // Make sure we don't have the tuple to be inserted already:
+        s.executeUpdate("delete from AIRLINES"); 
         enableXplainStyle(s);
         String insertStatement = 
             "insert into AIRLINES values " +
@@ -1641,6 +1643,9 @@
             if (e.getMessage().indexOf("RS_ID") < 0)
                 fail("Expected message about missing column RS_ID, not " +
                         e.getMessage());
+        } finally {
+            // Drop the created table if this testcase is not run as the last.
+            s.executeUpdate("drop table xpltest.sysxplain_resultsets");
         }
     }
 



Mime
View raw message