Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a61e15a

Browse files
committed
geo_distance function needs to be marked strict.
From Mark Stosberg.
1 parent 31874ad commit a61e15a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/earthdistance/earthdistance.sql.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33

44
DROP FUNCTION geo_distance (point, point);
55
CREATE FUNCTION geo_distance (point, point) RETURNS float8
6-
AS 'MODULE_PATHNAME' LANGUAGE 'c';
6+
AS 'MODULE_PATHNAME' LANGUAGE 'c'
7+
WITH (isstrict);
78

89
SELECT geo_distance ('(1,2)'::point, '(3,4)'::point);
910

0 commit comments

Comments
 (0)