Skip to content

Commit

Permalink
SqliteDriver: disables exceptions (is enabled since PHP 8.3)
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Nov 25, 2023
1 parent 951db43 commit 552f056
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Dibi/Drivers/SqliteDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public function __construct(array $config)

// enable foreign keys support (defaultly disabled; if disabled then foreign key constraints are not enforced)
$version = SQLite3::version();
$this->connection->enableExceptions(false);
if ($version['versionNumber'] >= '3006019') {
$this->query('PRAGMA foreign_keys = ON');
}
Expand Down

0 comments on commit 552f056

Please sign in to comment.