]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/db.php
more partitioning work, os open data postcodes, country list fixes
[nominatim.git] / lib / db.php
index a2bba81f587be2d40260efa45d8c2c154d04d23f..c50b3c404deb4223728b87aae90d6f926e071954 100644 (file)
@@ -1,10 +1,10 @@
 <?php
        require_once('DB.php');
 
-       function &getDB()
+       function &getDB($bNew = false)
        {
                // Get the database object
-               $oDB =& DB::connect(CONST_Database_DSN, false);
+               $oDB =& DB::connect(CONST_Database_DSN.($bNew?'?new_link=true':''), false);
                if (PEAR::IsError($oDB))
                {
                        fail($oDB->getMessage(), 'Unable to connect to the database');