Skip to content

Commit 6a3d490

Browse files
committed
Rename getValues() to formatValues()
1 parent 5e70771 commit 6a3d490

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

system/Database/BaseBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1931,7 +1931,7 @@ public function onConstraint($set)
19311931
/**
19321932
* Converts value array of array to array of strings
19331933
*/
1934-
protected function getValues(array $values): array
1934+
protected function formatValues(array $values): array
19351935
{
19361936
return array_map(static fn ($index) => '(' . implode(',', $index) . ')', $values);
19371937
}
@@ -1970,7 +1970,7 @@ protected function _insertBatch(string $table, array $keys, array $values): stri
19701970
if (isset($this->QBOptions['fromQuery'])) {
19711971
$data = $this->QBOptions['fromQuery'];
19721972
} else {
1973-
$data = 'VALUES ' . implode(', ', $this->getValues($values));
1973+
$data = 'VALUES ' . implode(', ', $this->formatValues($values));
19741974
}
19751975

19761976
return sprintf($sql, $data);

system/Database/Postgre/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ protected function _insertBatch(string $table, array $keys, array $values): stri
210210
if (isset($this->QBOptions['fromQuery'])) {
211211
$data = $this->QBOptions['fromQuery'];
212212
} else {
213-
$data = 'VALUES ' . implode(', ', $this->getValues($values));
213+
$data = 'VALUES ' . implode(', ', $this->formatValues($values));
214214
}
215215

216216
return sprintf($sql, $data);

system/Database/SQLSRV/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ protected function _insertBatch(string $table, array $keys, array $values): stri
193193
if (isset($this->QBOptions['fromQuery'])) {
194194
$data = $this->QBOptions['fromQuery'];
195195
} else {
196-
$data = 'VALUES ' . implode(', ', $this->getValues($values));
196+
$data = 'VALUES ' . implode(', ', $this->formatValues($values));
197197
}
198198

199199
return sprintf($sql, $data);

0 commit comments

Comments
 (0)