]> granicus.if.org Git - postgis/commitdiff
Support for changes in PgSQL 9.0 core
authorPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 16 Mar 2010 18:15:09 +0000 (18:15 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 16 Mar 2010 18:15:09 +0000 (18:15 +0000)
git-svn-id: http://svn.osgeo.org/postgis/branches/1.4@5441 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/lwgeom_accum.c

index cc4ac34dc65c45994a0ad6b9e95c33ad9fd686f7..1676f9340ac7623a92a5c4e425190d2190d5cd3d 100644 (file)
@@ -105,9 +105,13 @@ pgis_geometry_accum_transfn(PG_FUNCTION_ARGS)
 
        if (fcinfo->context && IsA(fcinfo->context, AggState))
                aggcontext = ((AggState *) fcinfo->context)->aggcontext;
-#if POSTGIS_PGSQL_VERSION >= 84
+#if POSTGIS_PGSQL_VERSION == 84
        else if (fcinfo->context && IsA(fcinfo->context, WindowAggState))
                aggcontext = ((WindowAggState *) fcinfo->context)->wincontext;
+#endif
+#if POSTGIS_PGSQL_VERSION > 84
+       else if (fcinfo->context && IsA(fcinfo->context, WindowAggState))
+               aggcontext = ((WindowAggState *) fcinfo->context)->aggcontext;
 #endif
        else
        {