sql: fix rank variable type

The rank type needs to match the parameter type of
update_place_diameter().

Fixes #1851.
This commit is contained in:
Sarah Hoffmann 2020-07-01 15:46:08 +02:00
parent fa8b16e7e7
commit 2edefd9e80

View 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;