]> git.openstreetmap.org Git - nominatim.git/blobdiff - sql/functions.sql
Separate more dependencies
[nominatim.git] / 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,