aboutsummaryrefslogtreecommitdiffstats
path: root/databases/postgis20/files/patch-postgis-lwgeom_accum.c
blob: 4d49da94543f5f5de665d928ab1c6cedd3ac0faa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- postgis/lwgeom_accum.c.orig 2012-02-27 22:08:12 UTC
+++ postgis/lwgeom_accum.c
@@ -106,7 +106,11 @@ pgis_geometry_accum_transfn(PG_FUNCTION_
                 errmsg("could not determine input data type")));
 
    if (fcinfo->context && IsA(fcinfo->context, AggState))
+#if POSTGIS_PGSQL_VERSION >= 95
+       aggcontext = ((AggState *) fcinfo->context)->aggcontexts;
+#else
        aggcontext = ((AggState *) fcinfo->context)->aggcontext;
+#endif
 #if POSTGIS_PGSQL_VERSION == 84
 
    else if (fcinfo->context && IsA(fcinfo->context, WindowAggState))