X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/6a1e599f31049b940d906fce9505a79672ef527a..00768d321e270b928b230eb038abc746a416306a:/sql/functions.sql?ds=sidebyside

diff --git a/sql/functions.sql b/sql/functions.sql
index 6a465e0b..efacf521 100644
--- a/sql/functions.sql
+++ b/sql/functions.sql
@@ -1529,7 +1529,7 @@ BEGIN
       END IF;
 
       IF NEW.parent_place_id IS NULL AND NEW.addr_place IS NOT NULL THEN
-        address_street_word_ids := get_name_id(make_standard_name(NEW.addr_place));
+        address_street_word_ids := get_name_ids(make_standard_name(NEW.addr_place));
         IF address_street_word_ids IS NOT NULL THEN
           FOR location IN SELECT * from getNearestNamedPlaceFeature(NEW.partition, place_centroid, address_street_word_ids) LOOP
             NEW.parent_place_id := location.place_id;
