File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1676,7 +1676,8 @@ stmt_exit : exit_type opt_label opt_exitcond
16761676 if (label == NULL )
16771677 ereport (ERROR,
16781678 (errcode (ERRCODE_SYNTAX_ERROR),
1679- errmsg (" there is no label \" %s\" surrounding this statement" ,
1679+ errmsg (" there is no label \" %s\" "
1680+ " attached to any block or loop enclosing this statement" ,
16801681 $2 ),
16811682 parser_errposition (@2 )));
16821683 /* CONTINUE only allows loop labels */
Original file line number Diff line number Diff line change @@ -2864,7 +2864,7 @@ begin
28642864 end;
28652865end;
28662866$$ language plpgsql;
2867- ERROR: there is no label "no_such_label" surrounding this statement
2867+ ERROR: there is no label "no_such_label" attached to any block or loop enclosing this statement
28682868LINE 5: continue no_such_label;
28692869 ^
28702870-- should fail: no such label
@@ -2877,7 +2877,7 @@ begin
28772877 end;
28782878end;
28792879$$ language plpgsql;
2880- ERROR: there is no label "no_such_label" surrounding this statement
2880+ ERROR: there is no label "no_such_label" attached to any block or loop enclosing this statement
28812881LINE 5: exit no_such_label;
28822882 ^
28832883-- should fail: CONTINUE can't reference the label of a named block
You can’t perform that action at this time.
0 commit comments