X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/88eaa8430b8ceb1696af50c603561a451353ed2a..00aed47c6f40c12d108df4412d807f84c0bd7097:/sql/functions.sql?ds=sidebyside

diff --git a/sql/functions.sql b/sql/functions.sql
index 039c03a3..c7d96cdc 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,
