]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix rank of postcode results
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 19 Oct 2019 15:57:57 +0000 (17:57 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 19 Oct 2019 16:12:22 +0000 (18:12 +0200)
Fixes #1487.

sql/functions.sql

index f696e23132804314cc848f330a445eb40c6e2039..f3bff89c66e63a018ce03e482447f8f2a1b246dc 100644 (file)
@@ -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,