db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r755070 - /db/derby/code/branches/10.5/java/testing/org/apache/derbyTesting/functionTests/tests/lang/OffsetFetchNextTest.java
Date Tue, 17 Mar 2009 01:39:55 GMT
Author: dag
Date: Tue Mar 17 01:39:55 2009
New Revision: 755070

URL: http://svn.apache.org/viewvc?rev=755070&view=rev
Log:
DERBY-4079 Add support for SQL:2008 <result offset clause> and <fetch first clause>
to limit result set cardinality

Backported patch derby-4079-fixRtStatsTest as:

svn merge -c 755058 https://svn.apache.org/repos/asf/db/derby/code/trunk

Modified:
    db/derby/code/branches/10.5/java/testing/org/apache/derbyTesting/functionTests/tests/lang/OffsetFetchNextTest.java

Modified: db/derby/code/branches/10.5/java/testing/org/apache/derbyTesting/functionTests/tests/lang/OffsetFetchNextTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.5/java/testing/org/apache/derbyTesting/functionTests/tests/lang/OffsetFetchNextTest.java?rev=755070&r1=755069&r2=755070&view=diff
==============================================================================
--- db/derby/code/branches/10.5/java/testing/org/apache/derbyTesting/functionTests/tests/lang/OffsetFetchNextTest.java
(original)
+++ db/derby/code/branches/10.5/java/testing/org/apache/derbyTesting/functionTests/tests/lang/OffsetFetchNextTest.java
Tue Mar 17 01:39:55 2009
@@ -599,12 +599,10 @@
         rs.next();
         String plan = rs.getString(1);
 
-        String nl = System.getProperty("line.separator");
-
         // Verify that the plan shows the filtering (2 rows of 3 seen):
-        assertTrue(plan.indexOf("Row Count (1):" + nl +
-                                "Number of opens = 1" + nl +
-                                "Rows seen = 3" + nl +
+        assertTrue(plan.indexOf("Row Count (1):\n" +
+                                "Number of opens = 1\n" +
+                                "Rows seen = 3\n" +
                                 "Rows filtered = 2") != -1);
 
         rs.close();



Mime
View raw message