missing brackets in default name assignment

This commit is contained in:
Sarah Hoffmann 2012-04-14 08:56:07 +02:00
parent 3f8fcd4055
commit 1a9f05fd3f

View File

@ -920,7 +920,7 @@ BEGIN
IF NEW.name ? 'name' AND NOT NEW.name ? ('name:'||default_language) THEN IF NEW.name ? 'name' AND NOT NEW.name ? ('name:'||default_language) THEN
NEW.name := NEW.name || (('name:'||default_language) => (NEW.name -> 'name')); NEW.name := NEW.name || (('name:'||default_language) => (NEW.name -> 'name'));
ELSEIF NEW.name ? ('name:'||default_language) AND NOT NEW.name ? 'name' THEN ELSEIF NEW.name ? ('name:'||default_language) AND NOT NEW.name ? 'name' THEN
NEW.name := NEW.name || ('name' => (NEW.name -> 'name:'||default_language)); NEW.name := NEW.name || ('name' => (NEW.name -> ('name:'||default_language)));
END IF; END IF;
END IF; END IF;
END IF; END IF;
@ -1271,7 +1271,7 @@ BEGIN
IF NEW.name ? 'name' AND NOT NEW.name ? ('name:'||default_language) THEN IF NEW.name ? 'name' AND NOT NEW.name ? ('name:'||default_language) THEN
NEW.name := NEW.name || (('name:'||default_language) => (NEW.name -> 'name')); NEW.name := NEW.name || (('name:'||default_language) => (NEW.name -> 'name'));
ELSEIF NEW.name ? ('name:'||default_language) AND NOT NEW.name ? 'name' THEN ELSEIF NEW.name ? ('name:'||default_language) AND NOT NEW.name ? 'name' THEN
NEW.name := NEW.name || ('name' => (NEW.name -> 'name:'||default_language)); NEW.name := NEW.name || ('name' => (NEW.name -> ('name:'||default_language)));
END IF; END IF;
END IF; END IF;
END IF; END IF;