Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd96c374

Browse files
committed
Use new forboth() macro to make loop coding a bit clearer.
1 parentffef9b8 commitd96c374

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

‎src/backend/tcop/pquery.c

Lines changed: 4 additions & 5 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.78 2004/05/2604:41:35 neilc Exp $
11+
* $PostgreSQL: pgsql/src/backend/tcop/pquery.c,v 1.79 2004/05/2618:54:08 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -801,8 +801,8 @@ PortalRunMulti(Portal portal,
801801
DestReceiver*dest,DestReceiver*altdest,
802802
char*completionTag)
803803
{
804-
ListCell*planlist_item=list_head(portal->planTrees);
805804
ListCell*querylist_item;
805+
ListCell*planlist_item;
806806

807807
/*
808808
* If the destination is RemoteExecute, change to None. The reason is
@@ -823,13 +823,12 @@ PortalRunMulti(Portal portal,
823823
* Loop to handle the individual queries generated from a single
824824
* parsetree by analysis and rewrite.
825825
*/
826-
foreach(querylist_item,portal->parseTrees)
826+
forboth(querylist_item,portal->parseTrees,
827+
planlist_item,portal->planTrees)
827828
{
828829
Query*query= (Query*)lfirst(querylist_item);
829830
Plan*plan= (Plan*)lfirst(planlist_item);
830831

831-
planlist_item=lnext(planlist_item);
832-
833832
/*
834833
* If we got a cancel signal in prior command, quit
835834
*/

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp