diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-11-21 18:30:58 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-11-21 18:30:58 +0000 |
commit | 82bad53cf5c442e01e8afa6122121e50bc44f88a (patch) | |
tree | 4310998a1fb556bcfe9ed62335a69933af65b56a /src | |
parent | dcdf9119a8e4a75cc5a0ad4db79ac2a1b5c42d95 (diff) | |
download | postgresql-82bad53cf5c442e01e8afa6122121e50bc44f88a.tar.gz postgresql-82bad53cf5c442e01e8afa6122121e50bc44f88a.zip |
Insert CommandCounterIncrement call into SPI_cursor_open.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/executor/spi.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/executor/spi.c b/src/backend/executor/spi.c index a790277bae7..8c6499de4cf 100644 --- a/src/backend/executor/spi.c +++ b/src/backend/executor/spi.c @@ -8,7 +8,7 @@ * * * 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 $ * *------------------------------------------------------------------------- */ @@ -730,6 +730,9 @@ SPI_cursor_open(char *name, void *plan, Datum *Values, char *Nulls) 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; |