Skip to content

Commit c603406

Browse files
authored
Merge pull request #7564 from kenjis/fix-qb-upsertBatch
fix: [QueryBuilder] incorrect SQL without space before "ON DUPLICATE KEY UPDATE"
2 parents cfa97d3 + ef76729 commit c603406

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Database/BaseBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1997,7 +1997,7 @@ protected function _upsertBatch(string $table, array $keys, array $values): stri
19971997
}
19981998

19991999
if (isset($this->QBOptions['setQueryAsData'])) {
2000-
$data = $this->QBOptions['setQueryAsData'];
2000+
$data = $this->QBOptions['setQueryAsData'] . "\n";
20012001
} else {
20022002
$data = 'VALUES ' . implode(', ', $this->formatValues($values)) . "\n";
20032003
}

0 commit comments

Comments
 (0)