projects
/
project/examples.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
1a8577d
)
#718672 by greggles: Add range() operator in dbtng_example
author
Randy Fay
Fri, 3 Sep 2010 15:00:40 +0000 (15:00 +0000)
committer
Randy Fay
Fri, 3 Sep 2010 15:00:40 +0000 (15:00 +0000)
dbtng_example/dbtng_example.module
patch
|
blob
|
blame
|
history
diff --git
a/dbtng_example/dbtng_example.module
b/dbtng_example/dbtng_example.module
index
68fbe60
..
1b7f8b5
100644
(file)
--- 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