From: Sarah Hoffmann Date: Sat, 19 Oct 2019 15:57:57 +0000 (+0200) Subject: fix rank of postcode results X-Git-Tag: v3.4.0~4^2 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/e3e9f696544c91c1b4ce00bdf950e1e240d85b11 fix rank of postcode results Fixes #1487. --- diff --git a/sql/functions.sql b/sql/functions.sql index f696e231..f3bff89c 100644 --- a/sql/functions.sql +++ b/sql/functions.sql @@ -2386,7 +2386,7 @@ BEGIN -- postcode table IF for_place_id IS NULL THEN - SELECT parent_place_id, country_code, rank_address, postcode, 'place', 'postcode' + SELECT parent_place_id, country_code, rank_search, postcode, 'place', 'postcode' FROM location_postcode WHERE place_id = in_place_id INTO for_place_id, searchcountrycode, searchrankaddress, searchpostcode,