From 0640326df45f010eca6680a1cf4bbd0d46a768a8 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Mon, 8 Sep 2025 08:40:57 +0200 Subject: [PATCH] SQLite PDO: Avoid double calling PRAGMA --- adminer/drivers/sqlite.inc.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/adminer/drivers/sqlite.inc.php b/adminer/drivers/sqlite.inc.php index a11ef6fc..f6f5384c 100644 --- a/adminer/drivers/sqlite.inc.php +++ b/adminer/drivers/sqlite.inc.php @@ -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", "", ""); } }