diff --git a/core/lib/Drupal/Core/Database/Driver/pgsql/Upsert.php b/core/lib/Drupal/Core/Database/Driver/pgsql/Upsert.php index b64869c..dd28f22 100644 --- a/core/lib/Drupal/Core/Database/Driver/pgsql/Upsert.php +++ b/core/lib/Drupal/Core/Database/Driver/pgsql/Upsert.php @@ -108,4 +108,7 @@ public function execute() { return TRUE; } + public function __toString() { + // Nothing to do. + } } diff --git a/core/lib/Drupal/Core/Database/Query/Upsert.php b/core/lib/Drupal/Core/Database/Query/Upsert.php index ccb1aa4..e9b5d0e 100644 --- a/core/lib/Drupal/Core/Database/Query/Upsert.php +++ b/core/lib/Drupal/Core/Database/Query/Upsert.php @@ -116,15 +116,4 @@ public function execute() { return $last_insert_id; } - /** - * Implements PHP magic __toString method to convert the query to a string. - * - * @return string - * The prepared query statement. - */ - public function __toString() { - // There is no generic cross-database way to implement UPSERT queries, each - // driver must implement their own logic. - } - }