]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix a bug induced by the list-rewrite that resulted in incrementing the
authorNeil Conway <neilc@samurai.com>
Tue, 1 Feb 2005 23:29:13 +0000 (23:29 +0000)
committerNeil Conway <neilc@samurai.com>
Tue, 1 Feb 2005 23:29:13 +0000 (23:29 +0000)
command counter more than necessary. Per report from Michael Fuhr.

src/backend/tcop/pquery.c

index b4668961981b652da7fa0a58b965c49ea383fd3e..cc048d811a63e970292dc024a020ad9bed96c109 100644 (file)
@@ -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();
 
                /*