From 15f9e397dd81dca6aae5cc6d70e670e79a951ce8 Mon Sep 17 00:00:00 2001 From: t-tomek Date: Wed, 21 Dec 2022 16:31:39 +0100 Subject: [PATCH] Update DB.php --- lib-php/DB.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib-php/DB.php b/lib-php/DB.php index 63733cc7..f5fea7f8 100644 --- a/lib-php/DB.php +++ b/lib-php/DB.php @@ -43,7 +43,7 @@ class DB $sMsg = 'Failed to establish database connection:' . $e->getMessage(); throw new \Nominatim\DatabaseError($sMsg, 500, null, $e->getMessage()); } - + $this->connection->exec("SET DateStyle TO 'sql,european'"); $this->connection->exec("SET client_encoding TO 'utf-8'"); // Disable JIT and parallel workers. They interfere badly with search SQL. @@ -59,7 +59,7 @@ class DB if ($iMaxExecution > 0) { $conn->setAttribute(\PDO::ATTR_TIMEOUT, $iMaxExecution); // seconds } - + return true; } -- 2.39.5