*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/spi.c,v 1.62 2001/11/10 23:51:14 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/spi.c,v 1.63 2001/11/21 18:30:58 tgl Exp $
*
*-------------------------------------------------------------------------
*/
else if (queryTree->into != NULL)
elog(ERROR, "plan in SPI_cursor_open() must NOT be a SELECT INTO");
+ /* Increment CommandCounter to see changes made by now */
+ CommandCounterIncrement();
+
/* Reset SPI result */
SPI_processed = 0;
SPI_tuptable = NULL;