SQLite PDO: Avoid double calling PRAGMA

This commit is contained in:
Jakub Vrana
2025-09-08 08:40:57 +02:00
parent 16f7080ff2
commit 0640326df4

View File

@@ -76,10 +76,7 @@ if (isset($_GET["sqlite"])) {
public $extension = "PDO_SQLite";
function attach(string $filename, string $username, string $password): string {
$this->dsn(DRIVER . ":$filename", "", "");
$this->query("PRAGMA foreign_keys = 1");
$this->query("PRAGMA busy_timeout = 500");
return '';
return $this->dsn(DRIVER . ":$filename", "", "");
}
}