From b8f01f91ca29186aef300d72f4dcf6327454c4e9 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sun, 26 Apr 2020 00:18:29 +0200 Subject: [PATCH] simplify display_name computation --- sql/functions/address_lookup.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/functions/address_lookup.sql b/sql/functions/address_lookup.sql index f8659c70..7885d0a9 100644 --- a/sql/functions/address_lookup.sql +++ b/sql/functions/address_lookup.sql @@ -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; -- 2.39.5