]> granicus.if.org Git - postgis/commitdiff
Updated call to SPI_cursor_open to 8.0 (beta2) interface.
authorSandro Santilli <strk@keybit.net>
Tue, 14 Sep 2004 07:43:00 +0000 (07:43 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 14 Sep 2004 07:43:00 +0000 (07:43 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@816 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_estimate.c

index 0db57e823325b06903c694bbf0e3821cbb759994..f679d5f45f8147b1c642f2ec4dd72e12d061bf94 100644 (file)
@@ -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");