Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Core / Database / Driver / pgsql / Delete.php
1 <?php
2
3 namespace Drupal\Core\Database\Driver\pgsql;
4
5 use Drupal\Core\Database\Query\Delete as QueryDelete;
6
7 /**
8  * PostgreSQL implementation of \Drupal\Core\Database\Query\Delete.
9  */
10 class Delete extends QueryDelete {
11
12   /**
13    * {@inheritdoc}
14    */
15   public function execute() {
16     $this->connection->addSavepoint();
17     try {
18       $result = parent::execute();
19     }
20     catch (\Exception $e) {
21       $this->connection->rollbackSavepoint();
22       throw $e;
23     }
24     $this->connection->releaseSavepoint();
25
26     return $result;
27   }
28
29 }