Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
e5356ea6
Commit
e5356ea6
authored
Dec 13, 2009
by
Angie Byron
Browse files
#653926
follow-up by Crell: Document SQL range limits.
parent
634d308b
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/database/select.inc
View file @
e5356ea6
...
...
@@ -1355,6 +1355,10 @@ public function __toString() {
}
// 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
.
=
"
\n
LIMIT "
.
$this
->
range
[
'length'
]
.
" OFFSET "
.
$this
->
range
[
'start'
];
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment