1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-09 17:03:00 +03:00

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

command counter more than necessary. Per report from Michael Fuhr.
This commit is contained in:
Neil Conway
2005-02-01 23:29:13 +00:00
parent 914db10289
commit a8daceaa15

View 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();
/*