// Fetch all the data from the reply, in order to release any lock as soon
@@ -150,8 +163,14 @@ public function execute($args = [], $options = []) {
/**
* Throw a PDO Exception based on the last PDO error.
*
* @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is
* no replacement.
*
* @see https://www.drupal.org/node/3410663
*/
protectedfunctionthrowPDOException():void{
@trigger_error(__METHOD__.'() is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3410663',E_USER_DEPRECATED);
$error_info=$this->connection->errorInfo();
// We rebuild a message formatted in the same way as PDO.
$exception=new\PDOException("SQLSTATE[".$error_info[0]."]: General error ".$error_info[1].": ".$error_info[2]);