[postgis-devel] hwgeom also nees update for 8.0 SPI_cursor_open
strk at refractions.net
strk at refractions.net
Tue Oct 5 15:47:34 PDT 2004
On Tue, Oct 05, 2004 at 05:34:00PM -0500, Kris Jurka wrote:
>
>
> hwgeom also needs conditional build for different SPI_cursor_open
> signatures.
>
> Kris Jurka
hwgeom/ is obsolete in the HEAD branch.
The 0_9 branch contains the fix already.
--strk;
> ? 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");
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
More information about the postgis-devel
mailing list