[postgis-devel] hwgeom also nees update for 8.0 SPI_cursor_open
Kris Jurka
books at ejurka.com
Tue Oct 5 15:34:00 PDT 2004
hwgeom also needs conditional build for different SPI_cursor_open
signatures.
Kris Jurka
-------------- next part --------------
? hwgeom/.deps
? hwgeom/libpostgis.so.0.9
? hwgeom/postgis.sql
? hwgeom/postgis_undef.sql
Index: hwgeom/postgis_estimate.c
===================================================================
RCS file: /home/cvs/postgis/postgis/hwgeom/postgis_estimate.c,v
retrieving revision 1.1
diff -c -r1.1 postgis_estimate.c
*** hwgeom/postgis_estimate.c 20 Sep 2004 07:50:06 -0000 1.1
--- hwgeom/postgis_estimate.c 5 Oct 2004 22:34:48 -0000
***************
*** 514,521 ****
elog(ERROR,"build_histogram2d: couldnt create query plan via SPI");
PG_RETURN_NULL() ;
}
!
SPIportal = SPI_cursor_open(NULL, SPIplan, NULL, NULL);
if (SPIportal == NULL)
{
elog(ERROR,"build_histogram2d: couldn't create cursor via SPI");
--- 514,524 ----
elog(ERROR,"build_histogram2d: couldnt create query plan via SPI");
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");
More information about the postgis-devel
mailing list