From: Daniel Baston Date: Fri, 4 Mar 2016 14:51:36 +0000 (+0000) Subject: #3480, copy input geometries to ST_ClusterDBSCAN X-Git-Tag: 2.3.0beta1~188 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=39d2c1dc56abb4ef0e15a0b891e29862697f54ee;p=postgis #3480, copy input geometries to ST_ClusterDBSCAN git-svn-id: http://svn.osgeo.org/postgis/trunk@14745 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis/lwgeom_window.c b/postgis/lwgeom_window.c index 779cd472d..5d02a364f 100644 --- a/postgis/lwgeom_window.c +++ b/postgis/lwgeom_window.c @@ -69,13 +69,13 @@ read_lwgeom_from_partition(WindowObject win_obj, uint32_t i, bool* is_null) if (*is_null) { /* So that the indexes in our clustering input array can match our partition positions, - * * toss an empty point into the clustering inputs, as a pass-through. - * * NOTE: this will cause gaps in the output cluster id sequence. - * */ + * toss an empty point into the clustering inputs, as a pass-through. + * NOTE: this will cause gaps in the output cluster id sequence. + * */ return lwpoint_as_lwgeom(lwpoint_construct_empty(0, 0, 0)); } - g = (GSERIALIZED*) PG_DETOAST_DATUM(arg); + g = (GSERIALIZED*) PG_DETOAST_DATUM_COPY(arg); return lwgeom_from_gserialized(g); }