Update to Drupal 8.1.8. For more information, see https://www.drupal.org/project/drupal/releases/8.1.8
This commit is contained in:
parent
e9f047ccf8
commit
f9f23cdf38
312 changed files with 6751 additions and 1546 deletions
|
@ -660,7 +660,7 @@ class Select extends Query implements SelectInterface {
|
|||
* {@inheritdoc}
|
||||
*/
|
||||
public function range($start = NULL, $length = NULL) {
|
||||
$this->range = func_num_args() ? array('start' => $start, 'length' => $length) : array();
|
||||
$this->range = $start !== NULL ? array('start' => $start, 'length' => $length) : array();
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
@ -860,6 +860,14 @@ class Select extends Query implements SelectInterface {
|
|||
$query .= "\nHAVING " . $this->having;
|
||||
}
|
||||
|
||||
// UNION is a little odd, as the select queries to combine are passed into
|
||||
// this query, but syntactically they all end up on the same level.
|
||||
if ($this->union) {
|
||||
foreach ($this->union as $union) {
|
||||
$query .= ' ' . $union['type'] . ' ' . (string) $union['query'];
|
||||
}
|
||||
}
|
||||
|
||||
// ORDER BY
|
||||
if ($this->order) {
|
||||
$query .= "\nORDER BY ";
|
||||
|
@ -879,14 +887,6 @@ class Select extends Query implements SelectInterface {
|
|||
$query .= "\nLIMIT " . (int) $this->range['length'] . " OFFSET " . (int) $this->range['start'];
|
||||
}
|
||||
|
||||
// UNION is a little odd, as the select queries to combine are passed into
|
||||
// this query, but syntactically they all end up on the same level.
|
||||
if ($this->union) {
|
||||
foreach ($this->union as $union) {
|
||||
$query .= ' ' . $union['type'] . ' ' . (string) $union['query'];
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->forUpdate) {
|
||||
$query .= ' FOR UPDATE';
|
||||
}
|
||||
|
|
Reference in a new issue