mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-11 13:24:07 +00:00
fix linkage removal when nothing has changed
This commit is contained in:
@@ -874,7 +874,7 @@ BEGIN
|
|||||||
-- Remove linkage, if we have computed a different new linkee.
|
-- Remove linkage, if we have computed a different new linkee.
|
||||||
UPDATE placex SET linked_place_id = null, indexed_status = 2
|
UPDATE placex SET linked_place_id = null, indexed_status = 2
|
||||||
WHERE linked_place_id = NEW.place_id
|
WHERE linked_place_id = NEW.place_id
|
||||||
and (linked_place is null or linked_place_id != linked_place);
|
and (linked_place is null or place_id != linked_place);
|
||||||
-- update not necessary for osmline, cause linked_place_id does not exist
|
-- update not necessary for osmline, cause linked_place_id does not exist
|
||||||
|
|
||||||
-- Postcodes are just here to compute the centroids. They are not searchable
|
-- Postcodes are just here to compute the centroids. They are not searchable
|
||||||
|
|||||||
Reference in New Issue
Block a user