Commit f94197ef authored by Neil Conway's avatar Neil Conway

Fix a bug induced by the list-rewrite that resulted in incrementing the

command counter more than necessary. Per report from Michael Fuhr.
parent a3f945a1
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * 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, ...@@ -1033,7 +1033,7 @@ PortalRunMulti(Portal portal,
* Increment command counter between queries, but not after the * Increment command counter between queries, but not after the
* last one. * last one.
*/ */
if (planlist_item != NULL) if (lnext(planlist_item) != NULL)
CommandCounterIncrement(); CommandCounterIncrement();
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment