]> git.openstreetmap.org Git - nominatim.git/blobdiff - utils/setup.php
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / utils / setup.php
index 5236a8270f02c32be7401b99d66efe38037c9dd7..67c7fd7f80b8be31139dca46684c29fdd34c7e87 100755 (executable)
@@ -541,7 +541,7 @@ if ($aCMDResult['calculate-postcodes'] || $aCMDResult['all']) {
         }
     }
     $sSQL = "SELECT count(getorcreate_postcode_id(v)) FROM ";
-    $sSQL .= "(SELECT distinct(postcode) FROM location_postcode) p";
+    $sSQL .= "(SELECT distinct(postcode) as v FROM location_postcode) p";
 
     if (!pg_query($oDB->connection, $sSQL)) {
         fail(pg_last_error($oDB->connection));