From 24c277c807906214ebb6cae385ff78450176bb20 Mon Sep 17 00:00:00 2001 From: Tigrov Date: Sun, 14 Apr 2024 18:39:23 +0700 Subject: [PATCH] Remove redundant check --- src/QueryBuilder/AbstractDMLQueryBuilder.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/QueryBuilder/AbstractDMLQueryBuilder.php b/src/QueryBuilder/AbstractDMLQueryBuilder.php index 645ea7b5f..e7af38e74 100644 --- a/src/QueryBuilder/AbstractDMLQueryBuilder.php +++ b/src/QueryBuilder/AbstractDMLQueryBuilder.php @@ -75,10 +75,6 @@ public function batchInsert(string $table, array $columns, iterable $rows, array $columns = $this->extractColumnNames($rows, $columns); $values = $this->prepareBatchInsertValues($table, $rows, $columns, $params); - if (empty($values)) { - return ''; - } - $query = 'INSERT INTO ' . $this->quoter->quoteTableName($table); if (count($columns) > 0) {