mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-24 06:22:08 +03:00
missing brackets in default name assignment
This commit is contained in:
parent
3f8fcd4055
commit
1a9f05fd3f
@ -920,7 +920,7 @@ BEGIN
|
||||
IF NEW.name ? 'name' AND NOT NEW.name ? ('name:'||default_language) THEN
|
||||
NEW.name := NEW.name || (('name:'||default_language) => (NEW.name -> 'name'));
|
||||
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;
|
||||
@ -1271,7 +1271,7 @@ BEGIN
|
||||
IF NEW.name ? 'name' AND NOT NEW.name ? ('name:'||default_language) THEN
|
||||
NEW.name := NEW.name || (('name:'||default_language) => (NEW.name -> 'name'));
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user