Skip to content

Commit 762e317

Browse files
committed
fix settings parameter for insertFilesAsOne method
1 parent 6a3e36d commit 762e317

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/Client.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,12 @@ public function insertFiles(string $table, array $columns, array $files, string
413413
* @param array $columns
414414
* @param array $files
415415
* @param string|null $format
416+
* @param array $options
416417
*
417418
* @return mixed
419+
* @throws ClientException
418420
*/
419-
public function insertFilesAsOne(string $table, array $columns, array $files, string $format = null)
421+
public function insertFilesAsOne(string $table, array $columns, array $files, string $format = null, $options = [])
420422
{
421423
if (is_null($format)) {
422424
$format = Format::CSV;
@@ -430,7 +432,7 @@ public function insertFilesAsOne(string $table, array $columns, array $files, st
430432
}
431433
}
432434

433-
return $this->getTransport()->sendFilesAsOneWithQuery($this->getServer(), $query, $files);
435+
return $this->getTransport()->sendFilesAsOneWithQuery($this->getServer(), $query, $files, $options);
434436
}
435437

436438
/**

src/Interfaces/TransportInterface.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function sendAsyncFilesWithQuery(Server $server, string $query, array $fi
4545
*
4646
* @return bool
4747
*/
48-
public function sendFilesAsOneWithQuery(Server $server, string $query, array $files, array $settings): bool;
48+
public function sendFilesAsOneWithQuery(Server $server, string $query, array $files, array $settings = []): bool;
4949

5050
/**
5151
* Executes SELECT queries and returns result.

0 commit comments

Comments
 (0)