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

Appearance settings

Commit 0fe8b1f

Browse filesBrowse files
committed
Remove extra increment of plpgsql's statement counter for FOR loops.
This left gaps in the internal statement numbering, which is not terribly harmful (else we'd have noticed sooner), but it's not great either. Oversight in bbd5c20; backpatch to v12 where that came in. Pavel Stehule Discussion: https://postgr.es/m/CAFj8pRDXyQaJmpotNTQVc-t-WxdWZC35V2PnmwOaV1-taidFWA@mail.gmail.com
1 parent 5868913 commit 0fe8b1f
Copy full SHA for 0fe8b1f

File tree

Expand file treeCollapse file tree

1 file changed

+0
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-2
lines changed

‎src/pl/plpgsql/src/pl_gram.y

Copy file name to clipboardExpand all lines: src/pl/plpgsql/src/pl_gram.y
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,7 +1304,6 @@ stmt_for : opt_loop_label K_FOR for_control loop_body
13041304

13051305
new = (PLpgSQL_stmt_fori *) $3;
13061306
new->lineno = plpgsql_location_to_lineno(@2);
1307-
new->stmtid = ++plpgsql_curr_compile->nstatements;
13081307
new->label = $1;
13091308
new->body = $4.stmts;
13101309
$$ = (PLpgSQL_stmt *) new;
@@ -1319,7 +1318,6 @@ stmt_for : opt_loop_label K_FOR for_control loop_body
13191318
/* forq is the common supertype of all three */
13201319
new = (PLpgSQL_stmt_forq *) $3;
13211320
new->lineno = plpgsql_location_to_lineno(@2);
1322-
new->stmtid = ++plpgsql_curr_compile->nstatements;
13231321
new->label = $1;
13241322
new->body = $4.stmts;
13251323
$$ = (PLpgSQL_stmt *) new;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.