aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2005-02-01 23:28:40 +0000
committerNeil Conway <neilc@samurai.com>2005-02-01 23:28:40 +0000
commitf94197ef35e3f7254acabdc3b8741b2b94e44d5c (patch)
treef9a1fa283ea3752b3b483d6e4bef0ff5fd68cbe8
parenta3f945a1b2b3451c02534abee8f4e421d3cfbfd3 (diff)
downloadpostgresql-f94197ef35e3f7254acabdc3b8741b2b94e44d5c.tar.gz
postgresql-f94197ef35e3f7254acabdc3b8741b2b94e44d5c.zip
Fix a bug induced by the list-rewrite that resulted in incrementing the
command counter more than necessary. Per report from Michael Fuhr.
-rw-r--r--src/backend/tcop/pquery.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/tcop/pquery.c b/src/backend/tcop/pquery.c
index b4668961981..496cbb43f8a 100644
--- a/src/backend/tcop/pquery.c
+++ b/src/backend/tcop/pquery.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/tcop/pquery.c,v 1.89 2004/12/31 22:01:16 pgsql Exp $
+ * $PostgreSQL: pgsql/src/backend/tcop/pquery.c,v 1.90 2005/02/01 23:28:40 neilc Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1033,7 +1033,7 @@ PortalRunMulti(Portal portal,
* Increment command counter between queries, but not after the
* last one.
*/
- if (planlist_item != NULL)
+ if (lnext(planlist_item) != NULL)
CommandCounterIncrement();
/*