- Fixed a bug within INSERT query
This commit is contained in:
1 parent
3a80fee9c3
commit
62792e8325
3 files changed
+10
-7
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user