diff --git a/src/DMLQueryBuilder.php b/src/DMLQueryBuilder.php index 6b3a82a..4047a17 100644 --- a/src/DMLQueryBuilder.php +++ b/src/DMLQueryBuilder.php @@ -4,7 +4,6 @@ namespace Yiisoft\Db\Oracle; -use Generator; use JsonException; use Yiisoft\Db\Exception\Exception; use Yiisoft\Db\Exception\InvalidArgumentException; @@ -32,14 +31,14 @@ final class DMLQueryBuilder extends AbstractDMLQueryBuilder * @throws InvalidConfigException * @throws NotSupportedException */ - public function batchInsert(string $table, array $columns, iterable|Generator $rows, array &$params = []): string + public function batchInsert(string $table, array $columns, iterable $rows, array &$params = []): string { if (empty($rows)) { return ''; } $values = []; - $columns = $this->getNormalizeColumnNames($columns); + $columns = $this->getNormalizeColumnNames('', $columns); $columnSchemas = $this->schema->getTableSchema($table)?->getColumns() ?? []; /** @psalm-var array[] $rows */ diff --git a/tests/QueryBuilderTest.php b/tests/QueryBuilderTest.php index edb843d..9086b4f 100644 --- a/tests/QueryBuilderTest.php +++ b/tests/QueryBuilderTest.php @@ -4,7 +4,6 @@ namespace Yiisoft\Db\Oracle\Tests; -use Generator; use Throwable; use Yiisoft\Db\Exception\Exception; use Yiisoft\Db\Exception\InvalidArgumentException; @@ -125,7 +124,7 @@ public function testAlterColumn(): void * @throws InvalidArgumentException * @throws NotSupportedException */ - public function testBatchInsert(string $table, array $columns, iterable|Generator $rows, string $expected): void + public function testBatchInsert(string $table, array $columns, iterable $rows, string $expected): void { parent::testBatchInsert($table, $columns, $rows, $expected); }