X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/a5697c5279512dfafdf693ffe2a20d5db08cda5f..665b90bf5a0189d992e8a17639dec4926848f160:/sql/functions/utils.sql?ds=sidebyside

diff --git a/sql/functions/utils.sql b/sql/functions/utils.sql
index 2b3db04a..33ae340a 100644
--- a/sql/functions/utils.sql
+++ b/sql/functions/utils.sql
@@ -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;
