]> git.openstreetmap.org Git - nominatim.git/blobdiff - sql/tiger_import_start.sql
Merge branch 'update-jquery-leaflet' of https://github.com/mtmail/Nominatim into...
[nominatim.git] / sql / tiger_import_start.sql
index 5f9165015853458f3c5f1580a1cee832b94e804f..4b9c33fcbcb5e7650729e1ea34102e056ddf0af4 100644 (file)
@@ -63,9 +63,8 @@ BEGIN
   END IF;
 
   IF out_parent_place_id IS NULL THEN
-    FOR location IN SELECT place_id FROM getNearestParellelRoadFeature(out_partition, linegeo) LOOP
-      out_parent_place_id := location.place_id;
-    END LOOP;    
+    SELECT getNearestParallelRoadFeature(out_partition, linegeo)
+      INTO out_parent_place_id;
   END IF;
 
   IF out_parent_place_id IS NULL THEN