]> git.openstreetmap.org Git - nominatim.git/commitdiff
Merge remote-tracking branch 'upstream/master'
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 11 Sep 2014 18:43:38 +0000 (20:43 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 11 Sep 2014 18:43:38 +0000 (20:43 +0200)
sql/functions.sql

index 10e0091db467eee5b259c89c473dfc2416668097..54f46cfe933b64fbd5f33dfc9a6ac336ade93539 100644 (file)
@@ -1023,6 +1023,13 @@ BEGIN
             NEW.rank_address := 5;
           END IF;
 
+        ELSEIF NEW.calculated_country_code = 'sg' THEN
+
+          IF NEW.postcode ~ '^([0-9]{6})$' THEN
+            NEW.rank_search := 25;
+            NEW.rank_address := 11;
+          END IF;
+
         ELSEIF NEW.calculated_country_code = 'de' THEN
 
           IF NEW.postcode ~ '^([0-9]{5})$' THEN