From: t-tomek Date: Wed, 21 Dec 2022 15:31:39 +0000 (+0100) Subject: Update DB.php X-Git-Tag: v4.3.0~119^2~3 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/15f9e397dd81dca6aae5cc6d70e670e79a951ce8?ds=sidebyside;hp=--cc Update DB.php --- 15f9e397dd81dca6aae5cc6d70e670e79a951ce8 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; }