format
This commit is contained in:
parent
3bb1566df2
commit
e7808096ff
1 changed files with 3 additions and 1 deletions
|
@ -100,7 +100,9 @@ class PostgreSQL extends DBEngine
|
||||||
|
|
||||||
public function set_timeout(PDO $db, ?int $time): void
|
public function set_timeout(PDO $db, ?int $time): void
|
||||||
{
|
{
|
||||||
if(is_null($time)) $time = 0;
|
if (is_null($time)) {
|
||||||
|
$time = 0;
|
||||||
|
}
|
||||||
$db->exec("SET statement_timeout TO ".$time.";");
|
$db->exec("SET statement_timeout TO ".$time.";");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue