X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/a517dd0ccf39b85a22e088ee7b2af857fca66c13..44f5058debc5c3310e2a35b285a53c78657fda5e:/sql/functions.sql diff --git a/sql/functions.sql b/sql/functions.sql index af9c47bb..1f7586fa 100644 --- a/sql/functions.sql +++ b/sql/functions.sql @@ -1217,9 +1217,9 @@ BEGIN RETURN NEW; END IF; - -- defered delete + -- deferred delete IF OLD.indexed_status = 100 THEN - delete from placex where osm_type = OLD.osm_type and osm_id = OLD.osm_id and class = OLD.class and type = OLD.type; + delete from placex where place_id = OLD.place_id; RETURN NULL; END IF;