DATABASE_TIMEOUT isn't set in the installer

This commit is contained in:
Shish 2020-06-22 16:08:04 +01:00
parent ed8a9fca52
commit ad1e52bf05
2 changed files with 3 additions and 2 deletions

View file

@ -92,8 +92,10 @@ class PostgreSQL extends DBEngine
} else { } else {
$db->exec("SET application_name TO 'shimmie [local]';"); $db->exec("SET application_name TO 'shimmie [local]';");
} }
if (defined("DATABASE_TIMEOUT")) {
$this->set_timeout($db, DATABASE_TIMEOUT); $this->set_timeout($db, DATABASE_TIMEOUT);
} }
}
public function scoreql_to_sql(string $data): string public function scoreql_to_sql(string $data): string
{ {

View file

@ -770,4 +770,3 @@ function stringer($s)
} }
return (string)$s; return (string)$s;
} }