From 4a407867e914798620070bc46a31739959b2c80a Mon Sep 17 00:00:00 2001 From: Regina Obe Date: Sun, 14 Oct 2012 05:40:44 +0000 Subject: [PATCH] #2046: fix 2.1 doesn't compile with postgresql 9.0 git-svn-id: http://svn.osgeo.org/postgis/trunk@10428 b70326c6-7e19-0410-871a-916f4a2858ee --- raster/rt_pg/rt_pg.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/raster/rt_pg/rt_pg.c b/raster/rt_pg/rt_pg.c index adb1cfdde..640f6ec56 100644 --- a/raster/rt_pg/rt_pg.c +++ b/raster/rt_pg/rt_pg.c @@ -14146,8 +14146,13 @@ Datum RASTER_nMapAlgebra(PG_FUNCTION_ARGS) elog(NOTICE, "Function provided is VOLATILE. Unless required and for best performance, function should be IMMUTABLE or STABLE"); /* prep function call data */ - InitFunctionCallInfoData(arg->callback.ufc_info, &(arg->callback.ufl_info), arg->callback.ufl_info.fn_nargs, InvalidOid, NULL, NULL); + #if POSTGIS_PGSQL_VERSION > 90 + InitFunctionCallInfoData(arg->callback.ufc_info, &(arg->callback.ufl_info), arg->callback.ufl_info.fn_nargs, InvalidOid, NULL, NULL); + #else + InitFunctionCallInfoData(arg->callback.ufc_info, &(arg->callback.ufl_info), arg->callback.ufl_info.fn_nargs, NULL, NULL); + #endif memset(arg->callback.ufc_info.argnull, FALSE, arg->callback.ufl_info.fn_nargs); + /* userargs (7) */ if (!PG_ARGISNULL(7)) -- 2.40.0