You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by tf...@apache.org on 2006/10/25 19:29:47 UTC
svn commit: r467719 -
/db/torque/test/trunk/test-project/src/java/org/apache/torque/DataTest.java
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