From 139678f367cabb25fa4444524404b6c498b3355b Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Wed, 26 Nov 2025 17:03:19 +0100 Subject: [PATCH] fix linkage removal when nothing has changed --- lib-sql/functions/placex_triggers.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib-sql/functions/placex_triggers.sql b/lib-sql/functions/placex_triggers.sql index 2e7911ee..a26fda7f 100644 --- a/lib-sql/functions/placex_triggers.sql +++ b/lib-sql/functions/placex_triggers.sql @@ -874,7 +874,7 @@ BEGIN -- Remove linkage, if we have computed a different new linkee. UPDATE placex SET linked_place_id = null, indexed_status = 2 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 -- Postcodes are just here to compute the centroids. They are not searchable