? 718672_range_at_least.patch
Index: dbtng_example/dbtng_example.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/examples/dbtng_example/dbtng_example.module,v
retrieving revision 1.4
diff -u -p -r1.4 dbtng_example.module
--- dbtng_example/dbtng_example.module	6 Jun 2010 13:41:32 -0000	1.4
+++ dbtng_example/dbtng_example.module	24 Aug 2010 00:31:34 -0000
@@ -297,6 +297,8 @@ function dbtng_example_advanced_list() {
   $select->condition('e.name', 'John');
   // Filter only persons older than 18 years.
   $select->condition('e.age', 18, '>');
+  // Make sure we only get 10 items, for scalability reasons.
+  $select->range(0, 50);
 
   // Now, loop all these entries and show them in a table. Note that there is no
   // db_fetch_* object or array function being called here. Also note that the
