]> granicus.if.org Git - postgis/commitdiff
Fix for array aggregation error (#469)
authorPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 23 Mar 2010 00:25:11 +0000 (00:25 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 23 Mar 2010 00:25:11 +0000 (00:25 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5454 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/lwgeom_accum.c

index 9d9c605526e263032c96d5dab1a194410ccf132b..9e7536993b867867e41eb8f694ef8b0a4c748e00 100644 (file)
@@ -169,9 +169,7 @@ pgis_accum_finalfn(pgis_abs *p, MemoryContext mctx, FunctionCallInfo fcinfo)
 #if POSTGIS_PGSQL_VERSION < 84
        result = makeMdArrayResult(state, 1, dims, lbs, mctx);
 #else
-       /* Release working state if regular aggregate, but not if window agg */
-       result = makeMdArrayResult(state, 1, dims, lbs, mctx,
-                                  IsA(fcinfo->context, AggState));
+       result = makeMdArrayResult(state, 1, dims, lbs, mctx, false);
 #endif
        return result;
 }