db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r467719 - /db/torque/test/trunk/test-project/src/java/org/apache/torque/DataTest.java
Date Wed, 25 Oct 2006 17:29:47 GMT
Author: tfischer
Date: Wed Oct 25 10:29:47 2006
New Revision: 467719

URL: http://svn.apache.org/viewvc?view=rev&rev=467719
Log:
Added test case for TORQUE-10

Modified:
    db/torque/test/trunk/test-project/src/java/org/apache/torque/DataTest.java

Modified: db/torque/test/trunk/test-project/src/java/org/apache/torque/DataTest.java
URL: http://svn.apache.org/viewvc/db/torque/test/trunk/test-project/src/java/org/apache/torque/DataTest.java?view=diff&rev=467719&r1=467718&r2=467719
==============================================================================
--- db/torque/test/trunk/test-project/src/java/org/apache/torque/DataTest.java (original)
+++ db/torque/test/trunk/test-project/src/java/org/apache/torque/DataTest.java Wed Oct 25
10:29:47 2006
@@ -235,6 +235,16 @@
                     + "A limit of 0 is not supported for Databases "
                     + "without native limit support");
         }
+        
+        // Check that limiting also works if a table with an equal column name
+        // is joined. This is problematic for oracle, see TORQUE-10.
+        
+        crit = new Criteria();
+        crit.setLimit(10);
+        crit.setOffset(5);
+        books = MyBookPeer.doSelectJoinAuthor(crit);
+        assertTrue("List should have 10 books, not " + books.size(),
+                books.size() == 10);
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message