Skip to content

Commit bc36f0c

Browse files
committed
refactor: resetWrite() when testMode
No need to keep write values even if testMode.
1 parent acd566d commit bc36f0c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

system/Database/BaseBuilder.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1644,9 +1644,7 @@ public function insertBatch(?array $set = null, ?bool $escape = null, int $batch
16441644
}
16451645
}
16461646

1647-
if (! $this->testMode) {
1648-
$this->resetWrite();
1649-
}
1647+
$this->resetWrite();
16501648

16511649
return $this->testMode ? $savedSQL : $affectedRows;
16521650
}

0 commit comments

Comments
 (0)