cleanup of SQL for readability. No logic change

This commit is contained in:
marc tobias
2016-10-30 13:57:48 +01:00
committed by Sarah Hoffmann
parent 4f3074e538
commit eb79e655e6
3 changed files with 27 additions and 2 deletions

View File

@@ -532,7 +532,7 @@ class Geocode
$sSQL .= " UNION ";
$sSQL .= "SELECT ";
$sSQL .= " 'W' AS osm_type, ";
$sSQL .= " place_id AS osm_id, ";
$sSQL .= " osm_id, ";
$sSQL .= " 'place' AS class, ";
$sSQL .= " 'house' AS type, ";
$sSQL .= " null AS admin_level, ";
@@ -563,6 +563,7 @@ class Geocode
$sSQL .= " null AS extra_place ";
$sSQL .= " FROM (";
$sSQL .= " SELECT ";
$sSQL .= " osm_id, ";
$sSQL .= " place_id, ";
$sSQL .= " calculated_country_code, ";
$sSQL .= " CASE "; // interpolate the housenumbers here