[postgis-commits] svn - r3384 - trunk/lwgeom

postgis-commits at postgis.refractions.net postgis-commits at postgis.refractions.net
Fri Dec 12 03:07:58 PST 2008


Author: mcayland
Date: 2008-12-12 03:07:56 -0800 (Fri, 12 Dec 2008)
New Revision: 3384

Modified:
   trunk/lwgeom/lwgeom_functions_basic.c
Log:
Looks like I accidentally removed some code from LWGEOM_accum that was required to set the Oid of the array being used to store the aggregate results. As reported by Regina.


Modified: trunk/lwgeom/lwgeom_functions_basic.c
===================================================================
--- trunk/lwgeom/lwgeom_functions_basic.c	2008-12-11 20:00:28 UTC (rev 3383)
+++ trunk/lwgeom/lwgeom_functions_basic.c	2008-12-12 11:07:56 UTC (rev 3384)
@@ -1841,6 +1841,7 @@
 	Datum datum;
 	PG_LWGEOM *geom;
 	ArrayType *result;
+	Oid oid = get_fn_expr_argtype(fcinfo->flinfo, 1);
 
 	POSTGIS_DEBUG(2, "LWGEOM_accum called");
 
@@ -1898,6 +1899,7 @@
 
 		SET_VARSIZE(result, nbytes);
 		result->ndim = 1;
+		result->elemtype = oid;
 
 #if POSTGIS_PGSQL_VERSION > 81
 		result->dataoffset = 0;



More information about the postgis-commits mailing list