]> git.openstreetmap.org Git - nominatim.git/commitdiff
simplify display_name computation
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 25 Apr 2020 22:18:29 +0000 (00:18 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 25 Apr 2020 22:18:29 +0000 (00:18 +0200)
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
     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;
       prevresult := currresult;
     END IF;
   END LOOP;