X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2bbe5017d44e6f50069bd5b966cefbc5065e267b..8ae317e0027ef40c81d29f875dd6ccfc805e3bb0:/sql/functions.sql

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,
