]> git.openstreetmap.org Git - nominatim.git/commitdiff
correctly set from area column in place_addressline
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 15 Oct 2020 10:06:53 +0000 (12:06 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 15 Oct 2020 10:06:53 +0000 (12:06 +0200)
This was always set to true which brings us to the question
if it is even still needed.

sql/functions/placex_triggers.sql

index 680e80e7553f38e72b67333722c5c68583c06e36..27fa3643b0b9ce2f61f76a9b7c984f576830e03c 100644 (file)
@@ -360,7 +360,7 @@ BEGIN
 
     INSERT INTO place_addressline (place_id, address_place_id, fromarea,
                                      isaddress, distance, cached_rank_address)
-        VALUES (obj_place_id, location.place_id, true,
+        VALUES (obj_place_id, location.place_id, not location.isguess,
                 location_isaddress, location.distance, location.rank_address);
   END LOOP;
 END;