Skip to content

Commit 980e9bb

Browse files
committed
rebase with master
1 parent 1d617b2 commit 980e9bb

File tree

2 files changed

+11
-15
lines changed

2 files changed

+11
-15
lines changed

expected/plpgsql_check_active.out

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3550,7 +3550,6 @@ select * from plpgsql_check_function('test_crash', fatal_errors := true);
35503550
(5 rows)
35513551

35523552
drop function test_crash();
3553-
35543553
-- fix false alarm reported by Piotr Stepniewski
35553554
create or replace function public.fx()
35563555
returns void
@@ -3605,7 +3604,6 @@ select * from plpgsql_check_function('fx()');
36053604
(2 rows)
36063605

36073606
drop function fx();
3608-
36093607
create or replace function foo_format(a text, b text)
36103608
returns void as $$
36113609
declare s text;
@@ -3676,11 +3674,6 @@ create type tp as (a int, b int);
36763674
create or replace function dyn_sql_2()
36773675
returns void as $$
36783676
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-
*/
36843677
r tp;
36853678
result int;
36863679
begin
@@ -3692,9 +3685,9 @@ begin
36923685
end;
36933686
$$ language plpgsql;
36943687
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
36983691
Query: select $1.c
36993692
-- ^
37003693
(3 rows)
@@ -3703,6 +3696,10 @@ drop function dyn_sql_2();
37033696
drop type tp;
37043697
/*
37053698
* 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.
37063703
*/
37073704
create or replace function dyn_sql_2()
37083705
returns void as $$

sql/plpgsql_check_active.sql

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2672,11 +2672,6 @@ create type tp as (a int, b int);
26722672
create or replace function dyn_sql_2()
26732673
returns void as $$
26742674
declare
2675-
/*
2676-
* note: plpgsql doesn't support passing some necessary details for record
2677-
* type. The parser setup for dynamic SQL column doesn't use ref hooks, and
2678-
* then it cannot to pass TupleDesc info to query.
2679-
*/
26802675
r tp;
26812676
result int;
26822677
begin
@@ -2696,6 +2691,10 @@ drop type tp;
26962691

26972692
/*
26982693
* Should not to work
2694+
*
2695+
* note: plpgsql doesn't support passing some necessary details for record
2696+
* type. The parser setup for dynamic SQL column doesn't use ref hooks, and
2697+
* then it cannot to pass TupleDesc info to query anyway.
26992698
*/
27002699
create or replace function dyn_sql_2()
27012700
returns void as $$

0 commit comments

Comments
 (0)