]> git.openstreetmap.org Git - nominatim.git/commitdiff
Merge remote-tracking branch 'upstream/master'
authorSarah Hoffmann <lonvia@denofr.de>
Sun, 9 Feb 2014 07:33:20 +0000 (08:33 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 9 Feb 2014 07:33:20 +0000 (08:33 +0100)
sql/functions.sql

index 6c9e092e1f3afac9d782dcc4b5f5dc526ff4b157..839d086c5b78b0b577d4ed7bd9e3c243a5beec0a 100644 (file)
@@ -2068,6 +2068,8 @@ BEGIN
 
   -- Just block these - lots and pointless
   IF NEW.class in ('landuse','natural') and NEW.name is null THEN
+    -- if the name tag was removed, older versions might still be lurking in the place table
+    DELETE FROM place where osm_type = NEW.osm_type and osm_id = NEW.osm_id and class = NEW.class and type = NEW.type;
     RETURN null;
   END IF;