add simple tests for postcode import

This commit is contained in:
Sarah Hoffmann
2017-08-06 18:42:04 +02:00
parent f9205caf22
commit e55ac77c94
6 changed files with 133 additions and 18 deletions

View File

@@ -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));