From a6ddd3a1ce843716a91c4af727d90b82511e40ea Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Thu, 5 Apr 2012 18:22:40 +0000 Subject: [PATCH] Send an "unknown" typmod into gserialized constructor from ST_GeographyFromText (#1755) git-svn-id: http://svn.osgeo.org/postgis/trunk@9614 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 4583a5d68..57f8c7ffa 100644 --- a/postgis/geography_inout.c +++ b/postgis/geography_inout.c @@ -517,7 +517,7 @@ Datum geography_from_text(PG_FUNCTION_ARGS) /* Clean up string */ pfree(wkt); - g_ser = gserialized_geography_from_lwgeom(lwg_parser_result.geom, 0); + g_ser = gserialized_geography_from_lwgeom(lwg_parser_result.geom, -1); /* Clean up temporary object */ lwgeom_free(lwg_parser_result.geom); -- 2.40.0