X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/372874e89adbfde48699c53bc24200c0113471fe..896199c9d4f9252307b1068cbe94fa8aedfedcf8:/lib-sql/functions/placex_triggers.sql?ds=sidebyside diff --git a/lib-sql/functions/placex_triggers.sql b/lib-sql/functions/placex_triggers.sql index 2c1b3bdb..f8580d7f 100644 --- a/lib-sql/functions/placex_triggers.sql +++ b/lib-sql/functions/placex_triggers.sql @@ -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