@@ -3550,7 +3550,6 @@ select * from plpgsql_check_function('test_crash', fatal_errors := true);
3550
3550
(5 rows)
3551
3551
3552
3552
drop function test_crash();
3553
-
3554
3553
-- fix false alarm reported by Piotr Stepniewski
3555
3554
create or replace function public.fx()
3556
3555
returns void
@@ -3605,7 +3604,6 @@ select * from plpgsql_check_function('fx()');
3605
3604
(2 rows)
3606
3605
3607
3606
drop function fx();
3608
-
3609
3607
create or replace function foo_format(a text, b text)
3610
3608
returns void as $$
3611
3609
declare s text;
@@ -3676,11 +3674,6 @@ create type tp as (a int, b int);
3676
3674
create or replace function dyn_sql_2()
3677
3675
returns void as $$
3678
3676
declare
3679
- /*
3680
- * note: plpgsql doesn't support passing some necessary details for record
3681
- * type. The parser setup for dynamic SQL column doesn't use ref hooks, and
3682
- * then it cannot to pass TupleDesc info to query.
3683
- */
3684
3677
r tp;
3685
3678
result int;
3686
3679
begin
@@ -3692,9 +3685,9 @@ begin
3692
3685
end;
3693
3686
$$ language plpgsql;
3694
3687
select * from plpgsql_check_function('dyn_sql_2', security_warnings := true);
3695
- plpgsql_check_function
3696
- -------------------------------------------------------------
3697
- error:42703:14 :EXECUTE:column "c" not found in data type tp
3688
+ plpgsql_check_function
3689
+ ------------------------------------------------------------
3690
+ error:42703:9 :EXECUTE:column "c" not found in data type tp
3698
3691
Query: select $1.c
3699
3692
-- ^
3700
3693
(3 rows)
@@ -3703,6 +3696,10 @@ drop function dyn_sql_2();
3703
3696
drop type tp;
3704
3697
/*
3705
3698
* Should not to work
3699
+ *
3700
+ * note: plpgsql doesn't support passing some necessary details for record
3701
+ * type. The parser setup for dynamic SQL column doesn't use ref hooks, and
3702
+ * then it cannot to pass TupleDesc info to query anyway.
3706
3703
*/
3707
3704
create or replace function dyn_sql_2()
3708
3705
returns void as $$
0 commit comments