- Fixed a bug within INSERT query

This commit is contained in:
mcndave committed 2023-11-17 23:34:55 -05:00
1 parent 3a80fee9c3
commit 62792e8325
3 files changed
+10 -7

No files matched your search

+3 -2
View File
@@ -24,8 +24,9 @@ class Values extends Fragment {
if ($this->fieldCount === null) {
$this->fieldCount = count($row);
}
$this->rows[] = array_values($row);
# index starts at '1' for Pdo params
$this->rows[] = array_combine(range(1, count($row)), array_values($row));
return $this;
}