summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2fe3c65)
Address rank 25 is used for squares which are address-wise on the
same level as streets.
END IF;
SELECT * FROM insert_addresslines(NEW.place_id, NEW.partition,
END IF;
SELECT * FROM insert_addresslines(NEW.place_id, NEW.partition,
- CASE WHEN NEW.rank_address = 0
- THEN NEW.rank_search ELSE NEW.rank_address END,
+ CASE WHEN NEW.rank_address = 0 THEN NEW.rank_search
+ WHEN NEW.rank_address > 25 THEN 25::smallint
+ ELSE NEW.rank_address END,
NEW.address,
CASE WHEN NEW.rank_search >= 26
AND NEW.rank_search < 30
NEW.address,
CASE WHEN NEW.rank_search >= 26
AND NEW.rank_search < 30