mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Further tweak wording of error messages about bad CONTINUE/EXIT statements.
Per discussion, a little more verbosity seems called for.
This commit is contained in:
@ -2864,7 +2864,7 @@ begin
|
||||
end;
|
||||
end;
|
||||
$$ language plpgsql;
|
||||
ERROR: there is no label "no_such_label" surrounding this statement
|
||||
ERROR: there is no label "no_such_label" attached to any block or loop enclosing this statement
|
||||
LINE 5: continue no_such_label;
|
||||
^
|
||||
-- should fail: no such label
|
||||
@ -2877,7 +2877,7 @@ begin
|
||||
end;
|
||||
end;
|
||||
$$ language plpgsql;
|
||||
ERROR: there is no label "no_such_label" surrounding this statement
|
||||
ERROR: there is no label "no_such_label" attached to any block or loop enclosing this statement
|
||||
LINE 5: exit no_such_label;
|
||||
^
|
||||
-- should fail: CONTINUE can't reference the label of a named block
|
||||
|
Reference in New Issue
Block a user