summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-12-13 18:06:48 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-12-13 18:06:48 +0000
commite5356ea62dbe368532c3d23feed7bd26696453f9 (patch)
treea536a21ea5197460dae78cb70855c3517bea9bc4
parent634d308b4f4bb1a206d7f30c3a015d9c11fa360f (diff)
downloadbrdo-e5356ea62dbe368532c3d23feed7bd26696453f9.tar.gz
brdo-e5356ea62dbe368532c3d23feed7bd26696453f9.tar.bz2
#653926 follow-up by Crell: Document SQL range limits.
-rw-r--r--includes/database/select.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/database/select.inc b/includes/database/select.inc
index 3b9643b1e..1dc4dc723 100644
--- a/includes/database/select.inc
+++ b/includes/database/select.inc
@@ -1355,6 +1355,10 @@ class SelectQuery extends Query implements SelectQueryInterface {
}
// RANGE
+ // There is no universal SQL standard for handling range or limit clauses.
+ // Fortunately, all core-supported databases use the same range syntax.
+ // Databases that need a different syntax can override this method and
+ // do whatever alternate logic they need to.
if (!empty($this->range)) {
$query .= "\nLIMIT " . $this->range['length'] . " OFFSET " . $this->range['start'];
}