Skip to content

Commit 6a8074e

Browse files
committed
fix regress tests for Postgres 12
1 parent 4de37ba commit 6a8074e

File tree

2 files changed

+8
-20
lines changed

2 files changed

+8
-20
lines changed

expected/plpgsql_check_active.out

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3354,14 +3354,14 @@ begin
33543354
return (select * from fufu limit 1);
33553355
end;
33563356
$$ language plpgsql volatile;
3357-
select * from plpgsql_check_function('flag_test1(int)', performance_warnings => true);
3357+
select * from plpgsql_check_function('flag_test1(int)', performance_warnings := true);
33583358
plpgsql_check_function
33593359
-----------------------------------------------------------------------------------------
33603360
performance:00000:routine is marked as STABLE, should be IMMUTABLE
33613361
Hint: When you fix this issue, please, recheck other functions that uses this function.
33623362
(2 rows)
33633363

3364-
select * from plpgsql_check_function('flag_test2(int)', performance_warnings => true);
3364+
select * from plpgsql_check_function('flag_test2(int)', performance_warnings := true);
33653365
plpgsql_check_function
33663366
-----------------------------------------------------------------------------------------
33673367
warning extra:00000:parameter "$1" is never read
@@ -3529,7 +3529,7 @@ begin
35293529
end;
35303530
$$ language plpgsql;
35313531
-- should not to crash
3532-
select * from plpgsql_check_function('test_crash', fatal_errors=>false);
3532+
select * from plpgsql_check_function('test_crash', fatal_errors := false);
35333533
plpgsql_check_function
35343534
---------------------------------------------------------------------------------------------------------
35353535
error:42883:4:statement block:function buggyfunc(integer) does not exist
@@ -3543,7 +3543,7 @@ select * from plpgsql_check_function('test_crash', fatal_errors=>false);
35433543
warning extra:00000:3:DECLARE:never read variable "ec"
35443544
(9 rows)
35453545

3546-
select * from plpgsql_check_function('test_crash', fatal_errors=>true);
3546+
select * from plpgsql_check_function('test_crash', fatal_errors := true);
35473547
plpgsql_check_function
35483548
---------------------------------------------------------------------------------------------------------
35493549
error:42883:4:statement block:function buggyfunc(integer) does not exist

expected/plpgsql_check_passive.out

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -252,14 +252,8 @@ begin
252252
end;
253253
$$ language plpgsql;
254254
select f1();
255-
WARNING: too many parameters specified for RAISE
256-
CONTEXT: PL/pgSQL function f1() line 4 at RAISE
257-
PL/pgSQL function f1() line 4 at RAISE
258-
f1
259-
----
260-
261-
(1 row)
262-
255+
ERROR: too many parameters specified for RAISE
256+
CONTEXT: compilation of PL/pgSQL function "f1" near line 4
263257
drop function f1();
264258
create or replace function f1()
265259
returns void as $$
@@ -270,12 +264,6 @@ begin
270264
end;
271265
$$ language plpgsql;
272266
select f1();
273-
WARNING: too few parameters specified for RAISE
274-
CONTEXT: PL/pgSQL function f1() line 4 at RAISE
275-
PL/pgSQL function f1() line 4 at RAISE
276-
f1
277-
----
278-
279-
(1 row)
280-
267+
ERROR: too few parameters specified for RAISE
268+
CONTEXT: compilation of PL/pgSQL function "f1" near line 4
281269
drop function f1();

0 commit comments

Comments
 (0)