From: Sandro Santilli Date: Tue, 14 Sep 2004 07:43:00 +0000 (+0000) Subject: Updated call to SPI_cursor_open to 8.0 (beta2) interface. X-Git-Tag: pgis_1_0_0RC1~452 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=02d44c24c223cd5deb46fbc457d029d681bbeb4d;p=postgis Updated call to SPI_cursor_open to 8.0 (beta2) interface. git-svn-id: http://svn.osgeo.org/postgis/trunk@816 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/lwgeom/lwgeom_estimate.c b/lwgeom/lwgeom_estimate.c index 0db57e823..f679d5f45 100644 --- a/lwgeom/lwgeom_estimate.c +++ b/lwgeom/lwgeom_estimate.c @@ -10,6 +10,9 @@ * ********************************************************************** * $Log$ + * Revision 1.4 2004/09/14 07:43:00 strk + * Updated call to SPI_cursor_open to 8.0 (beta2) interface. + * * Revision 1.3 2004/08/19 13:54:15 strk * cpp checks updated to use 80 instead of 75 for USE_VERSION * @@ -379,7 +382,11 @@ Datum build_lwhistogram2d(PG_FUNCTION_ARGS) PG_RETURN_NULL() ; } +#if USE_VERSION >= 80 + SPIportal = SPI_cursor_open(NULL, SPIplan, NULL, NULL, 1); +#else SPIportal = SPI_cursor_open(NULL, SPIplan, NULL, NULL); +#endif if (SPIportal == NULL) { elog(ERROR,"build_histogram2d: couldn't create cursor via SPI");