From: Tom Lane Date: Thu, 16 Aug 2001 22:24:43 +0000 (+0000) Subject: geo_distance function needs to be marked strict. X-Git-Tag: REL7_2_BETA1~685 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a61e15a5664536896f9d3a7454962d91a13d83bd;p=postgresql geo_distance function needs to be marked strict. From Mark Stosberg. --- diff --git a/contrib/earthdistance/earthdistance.sql.in b/contrib/earthdistance/earthdistance.sql.in index fdb4552f8a..087484da51 100644 --- a/contrib/earthdistance/earthdistance.sql.in +++ b/contrib/earthdistance/earthdistance.sql.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);