The rank type needs to match the parameter type of
update_place_diameter().
Fixes #1851.
placegeom GEOMETRY;
geom GEOMETRY;
diameter FLOAT;
placegeom GEOMETRY;
geom GEOMETRY;
diameter FLOAT;
BEGIN
UPDATE placex SET indexed_status = 2 WHERE place_id = placeid;
SELECT geometry, rank_search FROM placex WHERE place_id = placeid INTO placegeom, rank;
BEGIN
UPDATE placex SET indexed_status = 2 WHERE place_id = placeid;
SELECT geometry, rank_search FROM placex WHERE place_id = placeid INTO placegeom, rank;