summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dbtng_example/dbtng_example.module2
1 files changed, 2 insertions, 0 deletions
diff --git a/dbtng_example/dbtng_example.module b/dbtng_example/dbtng_example.module
index 68fbe60..1b7f8b5 100644
--- a/dbtng_example/dbtng_example.module
+++ b/dbtng_example/dbtng_example.module
@@ -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 items 0-49, 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