]> git.openstreetmap.org Git - nominatim.git/commitdiff
Merge remote-tracking branch 'upstream/master'
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 2 May 2022 12:13:43 +0000 (14:13 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 2 May 2022 12:13:43 +0000 (14:13 +0200)
lib-sql/functions/placex_triggers.sql

index 2c1b3bdbb97b87df1c09e5bbabb2d1d38f8e603c..f8580d7faefe14e5f3e3f0934614ef45d6eee9a2 100644 (file)
@@ -120,7 +120,7 @@ BEGIN
       IF location.members[i+1] = 'street' THEN
         FOR parent IN
           SELECT place_id from placex
-           WHERE osm_type = upper(substring(location.members[i], 1, 1))
+           WHERE osm_type = upper(substring(location.members[i], 1, 1))::char(1)
                  and osm_id = substring(location.members[i], 2)::bigint
                  and name is not null
                  and rank_search between 26 and 27