db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r755058 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/OffsetFetchNextTest.java
Date Tue, 17 Mar 2009 00:59:38 GMT
Author: dag
Date: Tue Mar 17 00:59:37 2009
New Revision: 755058

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

Patch derby-4079-fixRtStatsTest fixes a end-of-line problem on the Windows platform.

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

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/OffsetFetchNextTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/OffsetFetchNextTest.java?rev=755058&r1=755057&r2=755058&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/OffsetFetchNextTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/OffsetFetchNextTest.java
Tue Mar 17 00:59:37 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