summaryrefslogtreecommitdiff
path: root/src/test/regress
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-08-25 14:06:13 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2015-08-25 14:06:13 -0400
commit781ed2bfa35f0a8a7ad1029d3a7d7687c73d86a0 (patch)
tree2f798786223577e5706b8be5157a684b1ccdea0b /src/test/regress
parent7b5ef8f2d070c075811ec04a0fcb745d67c7fe3f (diff)
downloadpostgresql-781ed2bfa35f0a8a7ad1029d3a7d7687c73d86a0.tar.gz
Further tweak wording of error messages about bad CONTINUE/EXIT statements.
Per discussion, a little more verbosity seems called for.
Diffstat (limited to 'src/test/regress')
-rw-r--r--src/test/regress/expected/plpgsql.out4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/regress/expected/plpgsql.out b/src/test/regress/expected/plpgsql.out
index c1822aadf0..83c643847d 100644
--- a/src/test/regress/expected/plpgsql.out
+++ b/src/test/regress/expected/plpgsql.out
@@ -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