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:
Sarah Hoffmann
2026-01-07 10:29:45 +01:00
parent 9ac5e0256d
commit e31862b7b5
2 changed files with 10 additions and 10 deletions

View File

@@ -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