avoid reassigning address rank of place itself

This commit is contained in:
Sarah Hoffmann
2012-08-20 23:33:35 +02:00
parent 1298d144e0
commit 9ab82a4f1f

View File

@@ -1639,6 +1639,8 @@ BEGIN
location_rank_search := 0;
location_distance := 0;
location_parent := NULL;
-- added ourself as address already
address_havelevel[NEW.rank_address] := true;
-- RAISE WARNING ' getNearFeatures(%,''%'',%,''%'')',NEW.partition, place_centroid, search_maxrank, isin_tokens;
FOR location IN SELECT * from getNearFeatures(NEW.partition, place_centroid, search_maxrank, isin_tokens) LOOP