Changes for core/lib/Drupal/Core/Database/Connection.php: 7 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
@@ -214,6 +214,7 @@ public function __construct(\PDO $connection, array $connection_options) {
@trigger_error('In drupal:10.0.0 not setting the $identifierQuotes property in the concrete Connection class will result in an RuntimeException. See https://www.drupal.org/node/2986894',E_USER_DEPRECATED);
$this->identifierQuotes=['',''];
}
assert(count($this->identifierQuotes)===2&&Inspector::assertAllStrings($this->identifierQuotes),'\Drupal\Core\Database\Connection::$identifierQuotes must contain 2 string values');
// The 'transactions' option is deprecated.
if(isset($connection_options['transactions'])){
@@ -228,6 +229,12 @@ public function __construct(\PDO $connection, array $connection_options) {
@trigger_error('Support for database drivers located in the "drivers/lib/Drupal/Driver/Database" directory is deprecated in drupal:9.1.0 and is removed in drupal:10.0.0. Contributed and custom database drivers should be provided by modules and use the namespace "Drupal\MODULE_NAME\Driver\Database\DRIVER_NAME". See https://www.drupal.org/node/3123251',E_USER_DEPRECATED);
Changes for core/tests/Drupal/Tests/Core/Database/ConnectionTest.php: 13 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
@@ -671,4 +671,17 @@ public function provideQueriesToTrim() {
];
}
/**
* Tests the deprecation of Drupal 8 style database drivers.
*
* @group legacy
* @expectedDeprecation Support for database drivers located in the "drivers/lib/Drupal/Driver/Database" directory is deprecated in drupal:9.1.0 and is removed in drupal:10.0.0. Contributed and custom database drivers should be provided by modules and use the namespace "Drupal\MODULE_NAME\Driver\Database\DRIVER_NAME". See https://www.drupal.org/node/3123251