From cde988853df04f3e7f2f93dd660b277f588be962 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sat, 6 Feb 2021 18:01:39 +0100 Subject: [PATCH] SQLite: Set busy_timeout to 500 --- adminer/drivers/sqlite.inc.php | 1 + changes.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/adminer/drivers/sqlite.inc.php b/adminer/drivers/sqlite.inc.php index 4876ebe0..b33cd9aa 100644 --- a/adminer/drivers/sqlite.inc.php +++ b/adminer/drivers/sqlite.inc.php @@ -191,6 +191,7 @@ if (isset($_GET["sqlite"]) || isset($_GET["sqlite2"])) { if (is_readable($filename) && $this->query("ATTACH " . $this->quote(preg_match("~(^[/\\\\]|:)~", $filename) ? $filename : dirname($_SERVER["SCRIPT_FILENAME"]) . "/$filename") . " AS a")) { // is_readable - SQLite 3 parent::__construct($filename); $this->query("PRAGMA foreign_keys = 1"); + $this->query("PRAGMA busy_timeout = 500"); return true; } return false; diff --git a/changes.txt b/changes.txt index 62a296ad..5a9b0207 100644 --- a/changes.txt +++ b/changes.txt @@ -9,6 +9,7 @@ PostgreSQL: Use bigserial for bigint auto increment (bug #765, regression from 3 PostgreSQL PDO: Support PgBouncer, unsupport PostgreSQL < 9.1 (bug #771) PostgreSQL 10: Support GENERATED ALWAYS BY IDENTITY (PR #386) PostgreSQL 11: Create PRIMARY KEY for auto increment columns +SQLite: Set busy_timeout to 500 MS SQL: Don't truncate comments to 30 chars (PR #376) Editor: Cast to string when searching (bug #325) Re-enable PHP warnings (regression from 4.7.8)