]> granicus.if.org Git - postgis/commitdiff
#2046: fix 2.1 doesn't compile with postgresql 9.0
authorRegina Obe <lr@pcorp.us>
Sun, 14 Oct 2012 05:40:44 +0000 (05:40 +0000)
committerRegina Obe <lr@pcorp.us>
Sun, 14 Oct 2012 05:40:44 +0000 (05:40 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@10428 b70326c6-7e19-0410-871a-916f4a2858ee

raster/rt_pg/rt_pg.c

index adb1cfddebeb5bb48dccf05f2f6beaf4f72012d6..640f6ec569c94a2cc4c2d0ebeaabdcc6b74f242f 100644 (file)
@@ -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))