Commit e5356ea6 authored by webchick's avatar webchick
Browse files

#653926 follow-up by Crell: Document SQL range limits.

parent 634d308b
...@@ -1355,6 +1355,10 @@ public function __toString() { ...@@ -1355,6 +1355,10 @@ public function __toString() {
} }
// RANGE // 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)) { if (!empty($this->range)) {
$query .= "\nLIMIT " . $this->range['length'] . " OFFSET " . $this->range['start']; $query .= "\nLIMIT " . $this->range['length'] . " OFFSET " . $this->range['start'];
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment