Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f94197e

Browse files
author
Neil Conway
committed
Fix a bug induced by the list-rewrite that resulted in incrementing the
command counter more than necessary. Per report from Michael Fuhr.
1 parent a3f945a commit f94197e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/tcop/pquery.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/tcop/pquery.c,v 1.89 2004/12/31 22:01:16 pgsql Exp $
11+
* $PostgreSQL: pgsql/src/backend/tcop/pquery.c,v 1.90 2005/02/01 23:28:40 neilc Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -1033,7 +1033,7 @@ PortalRunMulti(Portal portal,
10331033
* Increment command counter between queries, but not after the
10341034
* last one.
10351035
*/
1036-
if (planlist_item != NULL)
1036+
if (lnext(planlist_item) != NULL)
10371037
CommandCounterIncrement();
10381038

10391039
/*

0 commit comments

Comments
 (0)