Skip to content

Commit 329f295

Browse files
committed
Signed Commit
1 parent 6fc1af2 commit 329f295

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

system/Database/BaseBuilder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2214,6 +2214,7 @@ public function updateBatch(array $set = null, string $index = null, int $batchS
22142214
// Batch this baby
22152215
$affected_rows = 0;
22162216
$savedSQL = [];
2217+
$savedQBWhere = $this->QBWhere;
22172218
for ($i = 0, $total = count($this->QBSet); $i < $total; $i += $batchSize)
22182219
{
22192220
$sql = $this->_updateBatch($table, array_slice($this->QBSet, $i, $batchSize), $this->db->protectIdentifiers($index)
@@ -2229,7 +2230,7 @@ public function updateBatch(array $set = null, string $index = null, int $batchS
22292230
$affected_rows += $this->db->affectedRows();
22302231
}
22312232

2232-
$this->QBWhere = [];
2233+
$this->QBWhere = $savedQBWhere;
22332234
}
22342235

22352236
$this->resetWrite();

0 commit comments

Comments
 (0)