Skip to content

Commit

Permalink
Resolved #38 Insert Batch Helper - clean
Browse files Browse the repository at this point in the history
  • Loading branch information
dusta committed Feb 28, 2023
1 parent 5cb3b24 commit 1071ef6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Helper/InsertBatchHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ public function prepareInsert(string $table, array $columns, array $updateCols):
{
$sql = "INSERT INTO " . $table . " (" . trim(
implode(
', ',
$this->arrayMapAssoc(
function ($k, $v) {
return ltrim($k, ':');
},
$columns
)
', ',
$this->arrayMapAssoc(
function ($k, $v) {
return ltrim($k, ':');
},
$columns
)
)
) . ")";
/**
* Search if query string already exist
Expand Down

0 comments on commit 1071ef6

Please sign in to comment.