mirror of
https://github.com/postgres/postgres.git
synced 2025-06-10 09:21:54 +03:00
geo_distance function needs to be marked strict.
From Mark Stosberg.
This commit is contained in:
@ -3,7 +3,8 @@
|
||||
|
||||
DROP FUNCTION geo_distance (point, point);
|
||||
CREATE FUNCTION geo_distance (point, point) RETURNS float8
|
||||
AS 'MODULE_PATHNAME' LANGUAGE 'c';
|
||||
AS 'MODULE_PATHNAME' LANGUAGE 'c'
|
||||
WITH (isstrict);
|
||||
|
||||
SELECT geo_distance ('(1,2)'::point, '(3,4)'::point);
|
||||
|
||||
|
Reference in New Issue
Block a user