]> git.openstreetmap.org Git - nominatim.git/commitdiff
sql: fix rank variable type
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 1 Jul 2020 13:46:08 +0000 (15:46 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 1 Jul 2020 13:48:00 +0000 (15:48 +0200)
The rank type needs to match the parameter type of
update_place_diameter().

Fixes #1851.

sql/functions/utils.sql

index 2b3db04a92116b38c4f0504f1372923d313ed897..33ae340a601666f91fbaf20c3715460d633064c4 100644 (file)
@@ -467,7 +467,7 @@ DECLARE
   placegeom GEOMETRY;
   geom GEOMETRY;
   diameter FLOAT;
-  rank INTEGER;
+  rank SMALLINT;
 BEGIN
   UPDATE placex SET indexed_status = 2 WHERE place_id = placeid;
   SELECT geometry, rank_search FROM placex WHERE place_id = placeid INTO placegeom, rank;