Skip to content

Commit

Permalink
be more strict about removal from place_to_be_deleted
Browse files Browse the repository at this point in the history
If the type of a place is changed and then the same insert issued
again, the old data will effectively remain in the table.

Fixed #3168.
  • Loading branch information
lonvia committed Aug 25, 2023
1 parent 26dfb86 commit c5f5ab5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib-sql/functions/place_triggers.sql
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ BEGIN
-- Remove the place from the list of places to be deleted
DELETE FROM place_to_be_deleted pdel
WHERE pdel.osm_type = NEW.osm_type and pdel.osm_id = NEW.osm_id
and pdel.class = NEW.class;
and pdel.class = NEW.class and pdel.type = NEW.type;

-- Have we already done this place?
SELECT * INTO existing
Expand Down

0 comments on commit c5f5ab5

Please sign in to comment.