abort osmline update correctly when way nodes are missing

Fixes #695.
This commit is contained in:
Sarah Hoffmann
2017-03-30 22:14:47 +02:00
parent ee1b25820e
commit 43eedfd253
2 changed files with 18 additions and 1 deletions

View File

@@ -1026,7 +1026,7 @@ BEGIN
select nodes from planet_osm_ways where id = NEW.osm_id INTO waynodes;
IF array_upper(waynodes, 1) IS NULL THEN
RETURN 0;
RETURN NEW;
END IF;
linegeo := NEW.linegeo;