]> git.openstreetmap.org Git - nominatim.git/commitdiff
send address interpolation import to correct postgres conn
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 18 Apr 2017 20:11:58 +0000 (22:11 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 18 Apr 2017 20:11:58 +0000 (22:11 +0200)
utils/setup.php

index 0814794fc34722a2517ba2fec19381606226ba66..57a2de169a85a6cffc78ef8c2ab23c5c7e3eef1c 100755 (executable)
@@ -378,7 +378,7 @@ if ($aCMDResult['load-data'] || $aCMDResult['all']) {
     $sSQL .= ' SELECT osm_id, address, geometry from place where ';
     $sSQL .= "class='place' and type='houses' and osm_type='W' and ST_GeometryType(geometry) = 'ST_LineString'";
     if ($aCMDResult['verbose']) echo "$sSQL\n";
-    if (!pg_send_query($aDBInstances[$i]->connection, $sSQL)) fail(pg_last_error($oDB->connection));
+    if (!pg_send_query($aDBInstances[$iLoadThreads]->connection, $sSQL)) fail(pg_last_error($oDB->connection));
 
     $bAnyBusy = true;
     while ($bAnyBusy) {