diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-08-16 22:24:43 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-08-16 22:24:43 +0000 |
commit | a61e15a5664536896f9d3a7454962d91a13d83bd (patch) | |
tree | a50a52fd420b8234ea81ee51fb1a42c1bf23e534 | |
parent | 31874ad39b315bcb2f6c655610397000e4110c9c (diff) | |
download | postgresql-a61e15a5664536896f9d3a7454962d91a13d83bd.tar.gz postgresql-a61e15a5664536896f9d3a7454962d91a13d83bd.zip |
geo_distance function needs to be marked strict.
From Mark Stosberg.
-rw-r--r-- | contrib/earthdistance/earthdistance.sql.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/earthdistance/earthdistance.sql.in b/contrib/earthdistance/earthdistance.sql.in index fdb4552f8aa..087484da515 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); |