Skip to content
Snippets Groups Projects
Commit f94197ef authored by Neil Conway's avatar Neil Conway
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -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();
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment