summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/regress/expected/plpgsql.out26
-rw-r--r--src/test/regress/sql/plpgsql.sql21
2 files changed, 0 insertions, 47 deletions
diff --git a/src/test/regress/expected/plpgsql.out b/src/test/regress/expected/plpgsql.out
index aa50550f23f..08fbe46b3a2 100644
--- a/src/test/regress/expected/plpgsql.out
+++ b/src/test/regress/expected/plpgsql.out
@@ -2380,29 +2380,3 @@ ERROR: control reached end of function without RETURN
CONTEXT: PL/pgSQL function "missing_return_expr"
drop function void_return_expr();
drop function missing_return_expr();
--- test SQLSTATE and SQLERRM
-create function trap_exceptions() returns void as $_$
-begin
- begin
- raise exception 'first exception';
- exception when others then
- raise notice '% %', SQLSTATE, SQLERRM;
- end;
- raise notice '% %', SQLSTATE, SQLERRM;
- begin
- raise exception 'last exception';
- exception when others then
- raise notice '% %', SQLSTATE, SQLERRM;
- end;
- return;
-end; $_$ language plpgsql;
-select trap_exceptions();
-NOTICE: P0001 first exception
-NOTICE: 00000 Successful completion
-NOTICE: P0001 last exception
- trap_exceptions
------------------
-
-(1 row)
-
-drop function trap_exceptions();
diff --git a/src/test/regress/sql/plpgsql.sql b/src/test/regress/sql/plpgsql.sql
index 3703587ad16..7ea7c8c6e0c 100644
--- a/src/test/regress/sql/plpgsql.sql
+++ b/src/test/regress/sql/plpgsql.sql
@@ -2018,24 +2018,3 @@ select missing_return_expr();
drop function void_return_expr();
drop function missing_return_expr();
-
--- test SQLSTATE and SQLERRM
-create function trap_exceptions() returns void as $_$
-begin
- begin
- raise exception 'first exception';
- exception when others then
- raise notice '% %', SQLSTATE, SQLERRM;
- end;
- raise notice '% %', SQLSTATE, SQLERRM;
- begin
- raise exception 'last exception';
- exception when others then
- raise notice '% %', SQLSTATE, SQLERRM;
- end;
- return;
-end; $_$ language plpgsql;
-
-select trap_exceptions();
-
-drop function trap_exceptions();