We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 08bc8c7 + ef53442 commit ed20a53Copy full SHA for ed20a53
1 file changed
src/PdoWriter.php
@@ -101,6 +101,7 @@ public function flush()
101
102
$this->pdo->commit();
103
} catch (\PDOException $e) {
104
+ $this->pdo->rollBack();
105
throw new WriterException('Failed to write to database', null, $e);
106
}
107
0 commit comments