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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]