aboutsummaryrefslogtreecommitdiff
path: root/src/include/executor
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-03-25 23:27:59 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-03-25 23:27:59 +0000
commitbf8236526be85bc3f061a918dbf49a28bc9bc220 (patch)
tree884ac85f29507b9885d1afc805be8ac65d5f2089 /src/include/executor
parente85a01df678c9621c225200f1309ca8e682338ff (diff)
downloadpostgresql-bf8236526be85bc3f061a918dbf49a28bc9bc220.tar.gz
postgresql-bf8236526be85bc3f061a918dbf49a28bc9bc220.zip
Remove the prohibition on executing cursor commands through SPI_execute.
Vadim had included this restriction in the original design of the SPI code, but I'm darned if I can see a reason for it. I left the macro definition of SPI_ERROR_CURSOR in place, so as not to needlessly break any SPI callers that are checking for it, but that code will never actually be returned anymore.
Diffstat (limited to 'src/include/executor')
-rw-r--r--src/include/executor/spi.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/executor/spi.h b/src/include/executor/spi.h
index c041726a45a..80c8993c7c3 100644
--- a/src/include/executor/spi.h
+++ b/src/include/executor/spi.h
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/executor/spi.h,v 1.59 2007/03/15 23:12:06 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/executor/spi.h,v 1.60 2007/03/25 23:27:59 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -61,7 +61,7 @@ typedef struct _SPI_plan *SPIPlanPtr;
#define SPI_ERROR_COPY (-2)
#define SPI_ERROR_OPUNKNOWN (-3)
#define SPI_ERROR_UNCONNECTED (-4)
-#define SPI_ERROR_CURSOR (-5)
+#define SPI_ERROR_CURSOR (-5) /* not used anymore */
#define SPI_ERROR_ARGUMENT (-6)
#define SPI_ERROR_PARAM (-7)
#define SPI_ERROR_TRANSACTION (-8)