forked from hans/Nominatim
make sure that importance is always set to a non-null value
Secondary importance might return invalid values in some cases.
This commit is contained in:
@@ -1196,7 +1196,7 @@ BEGIN
|
||||
IF linked_importance is not null AND
|
||||
(NEW.importance is null or NEW.importance < linked_importance)
|
||||
THEN
|
||||
NEW.importance = linked_importance;
|
||||
NEW.importance := linked_importance;
|
||||
END IF;
|
||||
ELSE
|
||||
-- No linked place? As a last resort check if the boundary is tagged with
|
||||
|
||||
Reference in New Issue
Block a user