X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/3c9af7f151f27c05bc5873d4671e887ad95d0181..115c909fdf65966774940ef957cf0bd63ba844f2:/utils/setup.php diff --git a/utils/setup.php b/utils/setup.php index 5236a827..67c7fd7f 100755 --- a/utils/setup.php +++ b/utils/setup.php @@ -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));