|
@@ 1472-1476 (lines=5) @@
|
| 1469 |
|
|
| 1470 |
|
// Batch this baby |
| 1471 |
|
$affected_rows = 0; |
| 1472 |
|
for ($i = 0, $total = count($this->qb_set); $i < $total; $i += 100) |
| 1473 |
|
{ |
| 1474 |
|
$this->query($this->_insert_batch($this->protect_identifiers($table, TRUE, $escape, FALSE), $this->qb_keys, array_slice($this->qb_set, $i, 100))); |
| 1475 |
|
$affected_rows += $this->affected_rows(); |
| 1476 |
|
} |
| 1477 |
|
|
| 1478 |
|
$this->_reset_write(); |
| 1479 |
|
return $affected_rows; |
|
@@ 1880-1885 (lines=6) @@
|
| 1877 |
|
|
| 1878 |
|
// Batch this baby |
| 1879 |
|
$affected_rows = 0; |
| 1880 |
|
for ($i = 0, $total = count($this->qb_set); $i < $total; $i += 100) |
| 1881 |
|
{ |
| 1882 |
|
$this->query($this->_update_batch($this->protect_identifiers($table, TRUE, NULL, FALSE), array_slice($this->qb_set, $i, 100), $this->protect_identifiers($index))); |
| 1883 |
|
$affected_rows += $this->affected_rows(); |
| 1884 |
|
$this->qb_where = array(); |
| 1885 |
|
} |
| 1886 |
|
|
| 1887 |
|
$this->_reset_write(); |
| 1888 |
|
return $affected_rows; |