]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix syntax typo
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 14 Aug 2017 20:34:53 +0000 (22:34 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 14 Aug 2017 20:34:53 +0000 (22:34 +0200)
sql/functions.sql

index 721e0b1b541d0169df3dfdb8f96c6b8c8e6383b9..1cda2e98fe7a60a321f295991aff922c7935e2de 100644 (file)
@@ -2892,7 +2892,7 @@ BEGIN
     IF ST_GeometryType(placegeom) in ('ST_Polygon','ST_MultiPolygon') THEN
       FOR geom IN select split_geometry(placegeom) FROM placex WHERE place_id = placeid LOOP
         update placex set indexed_status = 2 where (st_covers(geom, placex.geometry) OR ST_Intersects(geom, placex.geometry)) 
-        AND rank_search > rank and indexed_status = 0 and ST_geometrytype(placex.geometry) = 'ST_Point' and (rank_search < 28 or name is not null or (rank >= 16 and address > 'place'));
+        AND rank_search > rank and indexed_status = 0 and ST_geometrytype(placex.geometry) = 'ST_Point' and (rank_search < 28 or name is not null or (rank >= 16 and address ? 'place'));
         update placex set indexed_status = 2 where (st_covers(geom, placex.geometry) OR ST_Intersects(geom, placex.geometry)) 
         AND rank_search > rank and indexed_status = 0 and ST_geometrytype(placex.geometry) != 'ST_Point' and (rank_search < 28 or name is not null or (rank >= 16 and address ? 'place'));
       END LOOP;