]> git.openstreetmap.org Git - nominatim.git/blobdiff - sql/functions/address_lookup.sql
Merge pull request #1792 from lonvia/remove-from-location-area
[nominatim.git] / sql / functions / address_lookup.sql
index f8659c704bd75f623eb74a7690049a9ba0ed7267..7885d0a960348ac346605a01861a56a7fccd5a13 100644 (file)
@@ -69,7 +69,7 @@ BEGIN
     IF currresult != prevresult AND currresult IS NOT NULL
        AND result[(100 - location.rank_address)] IS NULL
     THEN
-      result[(100 - location.rank_address)] := trim(get_name_by_language(location.name, languagepref));
+      result[(100 - location.rank_address)] := currresult;
       prevresult := currresult;
     END IF;
   END LOOP;