From 694bcebe83588ad34549bec47633d822b4839380 Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Tue, 16 Mar 2010 18:15:09 +0000 Subject: [PATCH] Support for changes in PgSQL 9.0 core git-svn-id: http://svn.osgeo.org/postgis/branches/1.4@5441 b70326c6-7e19-0410-871a-916f4a2858ee --- postgis/lwgeom_accum.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/postgis/lwgeom_accum.c b/postgis/lwgeom_accum.c index cc4ac34dc..1676f9340 100644 --- a/postgis/lwgeom_accum.c +++ b/postgis/lwgeom_accum.c @@ -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 { -- 2.50.0