SQLite: Set busy_timeout to 500
This commit is contained in:
parent
f8288dd227
commit
cde988853d
|
@ -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
|
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);
|
parent::__construct($filename);
|
||||||
$this->query("PRAGMA foreign_keys = 1");
|
$this->query("PRAGMA foreign_keys = 1");
|
||||||
|
$this->query("PRAGMA busy_timeout = 500");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -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 PDO: Support PgBouncer, unsupport PostgreSQL < 9.1 (bug #771)
|
||||||
PostgreSQL 10: Support GENERATED ALWAYS BY IDENTITY (PR #386)
|
PostgreSQL 10: Support GENERATED ALWAYS BY IDENTITY (PR #386)
|
||||||
PostgreSQL 11: Create PRIMARY KEY for auto increment columns
|
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)
|
MS SQL: Don't truncate comments to 30 chars (PR #376)
|
||||||
Editor: Cast to string when searching (bug #325)
|
Editor: Cast to string when searching (bug #325)
|
||||||
Re-enable PHP warnings (regression from 4.7.8)
|
Re-enable PHP warnings (regression from 4.7.8)
|
||||||
|
|
Loading…
Reference in a new issue