aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2005-02-01 23:29:13 +0000
committerNeil Conway <neilc@samurai.com>2005-02-01 23:29:13 +0000
commita8daceaa155cae7b375f19505cdb16e06c907c1d (patch)
tree808346e81949d9e76ab8d5f87c6dc46c9db66b56 /src
parent914db102894754802bdf5ad0ce94dfd29f45c1d9 (diff)
downloadpostgresql-a8daceaa155cae7b375f19505cdb16e06c907c1d.tar.gz
postgresql-a8daceaa155cae7b375f19505cdb16e06c907c1d.zip
Fix a bug induced by the list-rewrite that resulted in incrementing the
command counter more than necessary. Per report from Michael Fuhr.
Diffstat (limited to 'src')
-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..cc048d811a6 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.89.4.1 2005/02/01 23:29:13 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();
/*