From 25d0056dfd433049c2fbc4dca73d4160d93f665c Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Wed, 17 Dec 2014 17:36:01 +0000 Subject: [PATCH] #3009, geography case may alter tuple values git-svn-id: http://svn.osgeo.org/postgis/trunk@13150 b70326c6-7e19-0410-871a-916f4a2858ee --- postgis/geography_inout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgis/geography_inout.c b/postgis/geography_inout.c index b18229456..74b35be4d 100644 --- a/postgis/geography_inout.c +++ b/postgis/geography_inout.c @@ -567,7 +567,7 @@ Datum geography_from_binary(PG_FUNCTION_ARGS) PG_FUNCTION_INFO_V1(geography_from_geometry); Datum geography_from_geometry(PG_FUNCTION_ARGS) { - GSERIALIZED *geom = (GSERIALIZED*)PG_DETOAST_DATUM(PG_GETARG_DATUM(0)); + GSERIALIZED *geom = (GSERIALIZED*)PG_DETOAST_DATUM_COPY(PG_GETARG_DATUM(0)); LWGEOM *lwgeom = NULL; GSERIALIZED *g_ser = NULL; -- 2.50.1