mirror of
https://github.com/dg/dibi.git
synced 2025-08-08 07:06:52 +02:00
SqliteDriver: disables exceptions (is enabled since PHP 8.3)
This commit is contained in:
@@ -57,6 +57,7 @@ class SqliteDriver implements Dibi\Driver
|
|||||||
|
|
||||||
// enable foreign keys support (defaultly disabled; if disabled then foreign key constraints are not enforced)
|
// enable foreign keys support (defaultly disabled; if disabled then foreign key constraints are not enforced)
|
||||||
$version = SQLite3::version();
|
$version = SQLite3::version();
|
||||||
|
$this->connection->enableExceptions(false);
|
||||||
if ($version['versionNumber'] >= '3006019') {
|
if ($version['versionNumber'] >= '3006019') {
|
||||||
$this->query('PRAGMA foreign_keys = ON');
|
$this->query('PRAGMA foreign_keys = ON');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user