X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/ec2d491dc8939ecf28ab84e26955bc7189618096..c148b768f4926d578c499d24d93dbf6ea5b0b7e2:/lib/DB.php diff --git a/lib/DB.php b/lib/DB.php index d0066852..17dfe67d 100644 --- a/lib/DB.php +++ b/lib/DB.php @@ -58,7 +58,6 @@ class DB $val = $this->connection->exec($sSQL); } } catch (\PDOException $e) { - $sErrMessage = $e->message(); throw new \Nominatim\DatabaseError($sErrMessage, 500, null, $e, $sSQL); } return $val; @@ -230,12 +229,6 @@ class DB return 'ARRAY['.join(',', $a).']'; } - public function getLastError() - { - // https://secure.php.net/manual/en/pdo.errorinfo.php - return $this->connection->errorInfo(); - } - /** * Check if a table exists in the database. Returns true if it does. *