mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-11 13:24:07 +00:00
be more strict about removal from place_to_be_deleted
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.
This commit is contained in:
@@ -37,7 +37,7 @@ BEGIN
|
|||||||
-- Remove the place from the list of places to be deleted
|
-- Remove the place from the list of places to be deleted
|
||||||
DELETE FROM place_to_be_deleted pdel
|
DELETE FROM place_to_be_deleted pdel
|
||||||
WHERE pdel.osm_type = NEW.osm_type and pdel.osm_id = NEW.osm_id
|
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?
|
-- Have we already done this place?
|
||||||
SELECT * INTO existing
|
SELECT * INTO existing
|
||||||
|
|||||||
Reference in New Issue
Block a user