Update to Drupal 8.1.2. For more information, see https://www.drupal.org/project/drupal/releases/8.1.2
This commit is contained in:
parent
9eae24d844
commit
28556d630e
1322 changed files with 6699 additions and 2064 deletions
|
@ -79,7 +79,8 @@ class Connection extends DatabaseConnection {
|
|||
public function query($query, array $args = array(), $options = array()) {
|
||||
try {
|
||||
return parent::query($query, $args, $options);
|
||||
} catch (DatabaseException $e) {
|
||||
}
|
||||
catch (DatabaseException $e) {
|
||||
if ($e->getPrevious()->errorInfo[1] == 1153) {
|
||||
// If a max_allowed_packet error occurs the message length is truncated.
|
||||
// This should prevent the error from recurring if the exception is
|
||||
|
|
|
@ -58,4 +58,5 @@ class Insert extends QueryInsert {
|
|||
|
||||
return $query;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -374,7 +374,7 @@ class Connection extends DatabaseConnection {
|
|||
* A string representing the savepoint name. By default,
|
||||
* "mimic_implicit_commit" is used.
|
||||
*
|
||||
* @see Drupal\Core\Database\Connection::pushTransaction().
|
||||
* @see Drupal\Core\Database\Connection::pushTransaction()
|
||||
*/
|
||||
public function addSavepoint($savepoint_name = 'mimic_implicit_commit') {
|
||||
if ($this->inTransaction()) {
|
||||
|
@ -389,7 +389,7 @@ class Connection extends DatabaseConnection {
|
|||
* A string representing the savepoint name. By default,
|
||||
* "mimic_implicit_commit" is used.
|
||||
*
|
||||
* @see Drupal\Core\Database\Connection::popTransaction().
|
||||
* @see Drupal\Core\Database\Connection::popTransaction()
|
||||
*/
|
||||
public function releaseSavepoint($savepoint_name = 'mimic_implicit_commit') {
|
||||
if (isset($this->transactionLayers[$savepoint_name])) {
|
||||
|
|
|
@ -282,4 +282,5 @@ class Tasks extends InstallTasks {
|
|||
}
|
||||
return $form;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -844,6 +844,7 @@ class Schema extends DatabaseSchema {
|
|||
// Modify the hash so it's safe to use in PostgreSQL identifiers.
|
||||
return strtr($hash, array('+' => '_', '/' => '_', '=' => ''));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -152,6 +152,7 @@ class Select extends QuerySelect {
|
|||
|
||||
return $result;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -25,4 +25,5 @@ class Truncate extends QueryTruncate {
|
|||
|
||||
return $result;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ class Connection extends DatabaseConnection {
|
|||
*
|
||||
* @var bool
|
||||
*/
|
||||
var $tableDropped = FALSE;
|
||||
public $tableDropped = FALSE;
|
||||
|
||||
/**
|
||||
* Constructs a \Drupal\Core\Database\Driver\sqlite\Connection object.
|
||||
|
|
|
@ -103,4 +103,5 @@ class Tasks extends InstallTasks {
|
|||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -12,4 +12,5 @@ class Select extends QuerySelect {
|
|||
// SQLite does not support FOR UPDATE so nothing to do.
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -141,4 +141,5 @@ class Statement extends StatementPrefetch implements StatementInterface {
|
|||
|
||||
return $return;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -17,4 +17,5 @@ class Truncate extends QueryTruncate {
|
|||
|
||||
return $comments . 'DELETE FROM {' . $this->connection->escapeTable($this->table) . '} ';
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -163,4 +163,5 @@ class Log {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -87,4 +87,5 @@ interface AlterableInterface {
|
|||
* The previously attached metadata object, or NULL if one doesn't exist.
|
||||
*/
|
||||
public function getMetaData($key);
|
||||
|
||||
}
|
||||
|
|
|
@ -351,4 +351,5 @@ class Condition implements ConditionInterface, \Countable {
|
|||
public function orConditionGroup() {
|
||||
return $this->conditionGroupFactory('OR');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -191,4 +191,5 @@ interface ConditionInterface {
|
|||
* @return \Drupal\Core\Database\Query\ConditionInterface
|
||||
*/
|
||||
public function orConditionGroup();
|
||||
|
||||
}
|
||||
|
|
|
@ -75,4 +75,5 @@ class Delete extends Query implements ConditionInterface {
|
|||
|
||||
return $query;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -25,4 +25,5 @@ interface ExtendableInterface {
|
|||
* The extender object, which now contains a reference to this object.
|
||||
*/
|
||||
public function extend($extender_name);
|
||||
|
||||
}
|
||||
|
|
|
@ -170,4 +170,5 @@ class Insert extends Query implements \Countable {
|
|||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -403,4 +403,5 @@ class Merge extends Query implements ConditionInterface {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ class PagerSelectExtender extends SelectExtender {
|
|||
*
|
||||
* @var int
|
||||
*/
|
||||
static $maxElement = 0;
|
||||
public static $maxElement = 0;
|
||||
|
||||
/**
|
||||
* The number of elements per page to allow.
|
||||
|
@ -166,4 +166,5 @@ class PagerSelectExtender extends SelectExtender {
|
|||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -19,4 +19,5 @@ interface PlaceholderInterface {
|
|||
* The next available placeholder ID as an integer.
|
||||
*/
|
||||
public function nextPlaceholder();
|
||||
|
||||
}
|
||||
|
|
|
@ -532,4 +532,5 @@ class SelectExtender implements SelectInterface {
|
|||
public function orConditionGroup() {
|
||||
return $this->conditionGroupFactory('OR');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -96,4 +96,5 @@ class TableSortExtender extends SelectExtender {
|
|||
protected function order() {
|
||||
return tablesort_get_order($this->header);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -80,4 +80,5 @@ class Truncate extends Query {
|
|||
return $comments . 'TRUNCATE {' . $this->connection->escapeTable($this->table) . '} ';
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -655,4 +655,5 @@ abstract class Schema implements PlaceholderInterface {
|
|||
}
|
||||
return is_string($value) ? $this->connection->quote($value) : $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -208,4 +208,5 @@ interface StatementInterface extends \Traversable {
|
|||
* An associative array, or an empty array if there is no result set.
|
||||
*/
|
||||
public function fetchAllAssoc($key, $fetch = NULL);
|
||||
|
||||
}
|
||||
|
|
|
@ -93,4 +93,5 @@ class Transaction {
|
|||
$this->rolledBack = TRUE;
|
||||
$this->connection->rollback($this->name);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Reference in a new issue