aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2002-02-26 22:47:12 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2002-02-26 22:47:12 +0000
commit56ee2ecba96a742bb6e18dfe8ee48054e90ebaa9 (patch)
tree905c72dc3db475d47d04472a1de7ab715b5725c7 /src/backend/executor
parentf71dc6d0e28a855f2d782ec48f950ffeaca1307d (diff)
downloadpostgresql-56ee2ecba96a742bb6e18dfe8ee48054e90ebaa9.tar.gz
postgresql-56ee2ecba96a742bb6e18dfe8ee48054e90ebaa9.zip
Restructure command-completion-report code so that there is just one
report for each received SQL command, regardless of rewriting activity. Also ensure that this report comes from the 'original' command, not the last command generated by rewrite; this fixes 7.2 breakage for INSERT commands that have actions added by rules. Fernando Nasser and Tom Lane.
Diffstat (limited to 'src/backend/executor')
-rw-r--r--src/backend/executor/functions.c4
-rw-r--r--src/backend/executor/spi.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/executor/functions.c b/src/backend/executor/functions.c
index 7f73cdd26a9..c38b8077f52 100644
--- a/src/backend/executor/functions.c
+++ b/src/backend/executor/functions.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/functions.c,v 1.47 2001/10/28 06:25:43 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/functions.c,v 1.48 2002/02/26 22:47:05 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -275,7 +275,7 @@ postquel_getnext(execution_state *es)
/*
* Process a utility command. (create, destroy...) DZ - 30-8-1996
*/
- ProcessUtility(es->qd->parsetree->utilityStmt, es->qd->dest);
+ ProcessUtility(es->qd->parsetree->utilityStmt, es->qd->dest, NULL);
if (!LAST_POSTQUEL_COMMAND(es))
CommandCounterIncrement();
return (TupleTableSlot *) NULL;
diff --git a/src/backend/executor/spi.c b/src/backend/executor/spi.c
index b9ab6422658..05044d6cd39 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.65 2002/02/14 15:24:08 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/spi.c,v 1.66 2002/02/26 22:47:05 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1011,7 +1011,7 @@ _SPI_execute(char *src, int tcount, _SPI_plan *plan)
res = SPI_OK_UTILITY;
if (plan == NULL)
{
- ProcessUtility(queryTree->utilityStmt, None);
+ ProcessUtility(queryTree->utilityStmt, None, NULL);
if (!islastquery)
CommandCounterIncrement();
else
@@ -1085,7 +1085,7 @@ _SPI_execute_plan(_SPI_plan *plan, Datum *Values, char *Nulls, int tcount)
if (queryTree->commandType == CMD_UTILITY)
{
- ProcessUtility(queryTree->utilityStmt, None);
+ ProcessUtility(queryTree->utilityStmt, None, NULL);
if (!islastquery)
CommandCounterIncrement();
else