forked from hans/Nominatim
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:
@@ -467,7 +467,7 @@ DECLARE
|
|||||||
placegeom GEOMETRY;
|
placegeom GEOMETRY;
|
||||||
geom GEOMETRY;
|
geom GEOMETRY;
|
||||||
diameter FLOAT;
|
diameter FLOAT;
|
||||||
rank INTEGER;
|
rank SMALLINT;
|
||||||
BEGIN
|
BEGIN
|
||||||
UPDATE placex SET indexed_status = 2 WHERE place_id = placeid;
|
UPDATE placex SET indexed_status = 2 WHERE place_id = placeid;
|
||||||
SELECT geometry, rank_search FROM placex WHERE place_id = placeid INTO placegeom, rank;
|
SELECT geometry, rank_search FROM placex WHERE place_id = placeid INTO placegeom, rank;
|
||||||
|
|||||||
Reference in New Issue
Block a user