]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/db.php
Revert "cut interpolated housenumbers at range boundaries"
[nominatim.git] / lib / db.php
index 87868e5e5d2c36b38a1ca81a7efbae69d31976e9..145c57d0b09847b1491bdfe5d72612d6ad192376 100644 (file)
@@ -2,11 +2,14 @@
 
 require_once('DB.php');
 
 
 require_once('DB.php');
 
+
 function &getDB($bNew = false, $bPersistent = false)
 {
     // Get the database object
 function &getDB($bNew = false, $bPersistent = false)
 {
     // Get the database object
-    $oDB = chksql(DB::connect(CONST_Database_DSN.($bNew?'?new_link=true':''), $bPersistent),
-                  "Failed to establish database connection");
+    $oDB = chksql(
+        DB::connect(CONST_Database_DSN.($bNew?'?new_link=true':''), $bPersistent),
+        "Failed to establish database connection"
+    );
     $oDB->setFetchMode(DB_FETCHMODE_ASSOC);
     $oDB->query("SET DateStyle TO 'sql,european'");
     $oDB->query("SET client_encoding TO 'utf-8'");
     $oDB->setFetchMode(DB_FETCHMODE_ASSOC);
     $oDB->query("SET DateStyle TO 'sql,european'");
     $oDB->query("SET client_encoding TO 'utf-8'");