- Sqlite now handles concurrency with transactions

This commit is contained in:
Dave Mc Nicoll committed 2025-02-25 14:09:41 +00:00
1 parent 0fd6889c6f
commit e0ec140661
6 files changed
+26 -10

No files matched your search

+2 -4
View File
@@ -56,7 +56,7 @@ class PdoObject extends PDO {
}
}
catch (\Throwable $e) {
throw new \PdoException($e->getMessage() . " `$sql` with data:" . json_encode($parameters));
throw new \PdoException($e->getMessage() . " `$sql` with data:" . json_encode($parameters), (int) $e->getCode(), $e);
}
return null;
@@ -83,7 +83,7 @@ class PdoObject extends PDO {
$this->lastInsertId = null;
try {
if ( ! $this->inTransaction() ) {
if (! $this->inTransaction()) {
$this->beginTransaction();
}
@@ -113,8 +113,6 @@ class PdoObject extends PDO {
catch (\Throwable $e) {
throw $e;
}
return null;
}
protected function bindVariables(PDOStatement $statement, array &$parameters) : void