From e5356ea62dbe368532c3d23feed7bd26696453f9 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 13 Dec 2009 18:06:48 +0000 Subject: [PATCH] #653926 follow-up by Crell: Document SQL range limits. --- includes/database/select.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/database/select.inc b/includes/database/select.inc index 3b9643b1e25..1dc4dc72384 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']; }