mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-14 18:37:58 +00:00
explicit cast for osm_type parameter in SQL needed
Otherwise PostgreSQL won't correctly pick up the index condition.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user