diff --git a/core/lib/Drupal/Core/Database/Query/Insert.php b/core/lib/Drupal/Core/Database/Query/Insert.php index c2e9c1c..4f1d4dd 100644 --- a/core/lib/Drupal/Core/Database/Query/Insert.php +++ b/core/lib/Drupal/Core/Database/Query/Insert.php @@ -175,12 +175,4 @@ protected function preExecute() { } return TRUE; } - - /** - * {@inheritdoc} - */ - public function count() { - return count($this->insertValues); - } - } diff --git a/core/lib/Drupal/Core/Database/Query/InsertTrait.php b/core/lib/Drupal/Core/Database/Query/InsertTrait.php index 551e870..a8bab75 100644 --- a/core/lib/Drupal/Core/Database/Query/InsertTrait.php +++ b/core/lib/Drupal/Core/Database/Query/InsertTrait.php @@ -181,4 +181,11 @@ protected function getInsertPlaceholderFragment(array $nested_insert_values, arr return $values; } + /** + * {@inheritdoc} + */ + public function count() { + return count($this->insertValues); + } + } diff --git a/core/lib/Drupal/Core/Database/Query/Upsert.php b/core/lib/Drupal/Core/Database/Query/Upsert.php index b8d6a37..ca58c11 100644 --- a/core/lib/Drupal/Core/Database/Query/Upsert.php +++ b/core/lib/Drupal/Core/Database/Query/Upsert.php @@ -116,11 +116,4 @@ public function execute() { return $last_insert_id; } - /** - * {@inheritdoc} - */ - public function count() { - return count($this->insertValues); - } - }