@@ -2067,13 +2067,13 @@ end$$ language plpgsql;
2067
2067
select test_variable_storage();
2068
2068
NOTICE: should see this
2069
2069
CONTEXT: SQL statement "SELECT trap_zero_divide(-100)"
2070
- PL/pgSQL function "test_variable_storage" line 7 at perform
2070
+ PL/pgSQL function "test_variable_storage" line 7 at PERFORM
2071
2071
NOTICE: should see this only if -100 <> 0
2072
2072
CONTEXT: SQL statement "SELECT trap_zero_divide(-100)"
2073
- PL/pgSQL function "test_variable_storage" line 7 at perform
2073
+ PL/pgSQL function "test_variable_storage" line 7 at PERFORM
2074
2074
NOTICE: should see this only if -100 fits in smallint
2075
2075
CONTEXT: SQL statement "SELECT trap_zero_divide(-100)"
2076
- PL/pgSQL function "test_variable_storage" line 7 at perform
2076
+ PL/pgSQL function "test_variable_storage" line 7 at PERFORM
2077
2077
test_variable_storage
2078
2078
-----------------------
2079
2079
123456789012
@@ -2302,7 +2302,7 @@ end;
2302
2302
$$ language plpgsql;
2303
2303
select raise_test1(5);
2304
2304
ERROR: too many parameters specified for RAISE
2305
- CONTEXT: PL/pgSQL function "raise_test1" line 2 at raise
2305
+ CONTEXT: PL/pgSQL function "raise_test1" line 2 at RAISE
2306
2306
create function raise_test2(int) returns int as $$
2307
2307
begin
2308
2308
raise notice 'This message has too few parameters: %, %, %', $1, $1;
@@ -2311,7 +2311,7 @@ end;
2311
2311
$$ language plpgsql;
2312
2312
select raise_test2(10);
2313
2313
ERROR: too few parameters specified for RAISE
2314
- CONTEXT: PL/pgSQL function "raise_test2" line 2 at raise
2314
+ CONTEXT: PL/pgSQL function "raise_test2" line 2 at RAISE
2315
2315
--
2316
2316
-- reject function definitions that contain malformed SQL queries at
2317
2317
-- compile-time, where possible
@@ -2430,7 +2430,7 @@ ERROR: column "sqlstate" does not exist
2430
2430
LINE 1: SELECT sqlstate
2431
2431
^
2432
2432
QUERY: SELECT sqlstate
2433
- CONTEXT: PL/pgSQL function "excpt_test1" line 2 at raise
2433
+ CONTEXT: PL/pgSQL function "excpt_test1" line 2 at RAISE
2434
2434
create function excpt_test2() returns void as $$
2435
2435
begin
2436
2436
begin
@@ -2445,7 +2445,7 @@ ERROR: column "sqlstate" does not exist
2445
2445
LINE 1: SELECT sqlstate
2446
2446
^
2447
2447
QUERY: SELECT sqlstate
2448
- CONTEXT: PL/pgSQL function "excpt_test2" line 4 at raise
2448
+ CONTEXT: PL/pgSQL function "excpt_test2" line 4 at RAISE
2449
2449
create function excpt_test3() returns void as $$
2450
2450
begin
2451
2451
begin
@@ -2922,7 +2922,7 @@ begin
2922
2922
end$$ language plpgsql;
2923
2923
select footest();
2924
2924
ERROR: query returned no rows
2925
- CONTEXT: PL/pgSQL function "footest" line 4 at execute statement
2925
+ CONTEXT: PL/pgSQL function "footest" line 4 at EXECUTE statement
2926
2926
create or replace function footest() returns void as $$
2927
2927
declare x record;
2928
2928
begin
@@ -2932,7 +2932,7 @@ begin
2932
2932
end$$ language plpgsql;
2933
2933
select footest();
2934
2934
ERROR: query returned more than one row
2935
- CONTEXT: PL/pgSQL function "footest" line 4 at execute statement
2935
+ CONTEXT: PL/pgSQL function "footest" line 4 at EXECUTE statement
2936
2936
drop function footest();
2937
2937
-- test scrollable cursor support
2938
2938
create function sc_test() returns setof integer as $$
@@ -2976,7 +2976,7 @@ $$ language plpgsql;
2976
2976
select * from sc_test(); -- fails because of NO SCROLL specification
2977
2977
ERROR: cursor can only scan forward
2978
2978
HINT: Declare it with SCROLL option to enable backward scan.
2979
- CONTEXT: PL/pgSQL function "sc_test" line 6 at fetch
2979
+ CONTEXT: PL/pgSQL function "sc_test" line 6 at FETCH
2980
2980
create or replace function sc_test() returns setof integer as $$
2981
2981
declare
2982
2982
c refcursor;
0 commit comments