|
@@ 464-469 (lines=6) @@
|
| 461 |
|
$values = [$values]; |
| 462 |
|
} |
| 463 |
|
|
| 464 |
|
foreach ($values as $i => $record) { |
| 465 |
|
foreach ($record as $j => $value) { |
| 466 |
|
$this->addBinding($value, 'insert'); |
| 467 |
|
$values[$i][$j] = $this->getLastBindingKey(); |
| 468 |
|
} |
| 469 |
|
} |
| 470 |
|
|
| 471 |
|
$sql = $this->grammar->compileInsertGetId($this, $values, $sequence); |
| 472 |
|
|
|
@@ 549-554 (lines=6) @@
|
| 546 |
|
|
| 547 |
|
$values = $this->prepareColumns($values); |
| 548 |
|
|
| 549 |
|
foreach ($values as $i => $record) { |
| 550 |
|
foreach ($record as $j => $value) { |
| 551 |
|
$this->addBinding($value, 'insert'); |
| 552 |
|
$values[$i][$j] = $this->getLastBindingKey(); |
| 553 |
|
} |
| 554 |
|
} |
| 555 |
|
|
| 556 |
|
$aql = $this->grammar->compileInsert($this, $values); |
| 557 |
|
|