@@ -1312,10 +1312,10 @@ begin
13121312end;
13131313$$ language plpgsql;
13141314select * from plpgsql_check_function('f1()', performance_warnings := true);
1315- plpgsql_check_function
1316- -----------------------------------------------------------------------------------
1315+ plpgsql_check_function
1316+ -------------------------------------------------------------------------------------------------
13171317 error:42804:3:RETURN QUERY:structure of query does not match function result type
1318- Detail: Returned type integer does not match expected type numeric in column 1 .
1318+ Detail: Returned type integer does not match expected type numeric in column "ax" (position 1) .
13191319(2 rows)
13201320
13211321drop function f1();
@@ -1355,10 +1355,10 @@ begin
13551355end;
13561356$$ language plpgsql;
13571357select * from plpgsql_check_function('f1()', performance_warnings := true);
1358- plpgsql_check_function
1359- -----------------------------------------------------------------------------------
1358+ plpgsql_check_function
1359+ ------------------------------------------------------------------------------------------------
13601360 error:42804:3:RETURN QUERY:structure of query does not match function result type
1361- Detail: Returned type numeric does not match expected type integer in column 1 .
1361+ Detail: Returned type numeric does not match expected type integer in column "a" (position 1) .
13621362(2 rows)
13631363
13641364drop function f1();
@@ -1367,10 +1367,10 @@ returns setof numeric as $$
13671367begin return query select a;
13681368end $$ language plpgsql;
13691369select * from plpgsql_check_function('f1(int)', performance_warnings := true);
1370- plpgsql_check_function
1371- -----------------------------------------------------------------------------------
1370+ plpgsql_check_function
1371+ ---------------------------------------------------------------------------------------------------------
13721372 error:42804:2:RETURN QUERY:structure of query does not match function result type
1373- Detail: Returned type integer does not match expected type numeric in column 1 .
1373+ Detail: Returned type integer does not match expected type numeric in column "__result__" (position 1) .
13741374(2 rows)
13751375
13761376drop function f1(int);
@@ -1537,10 +1537,10 @@ begin
15371537end;
15381538$$ language plpgsql;
15391539select * from plpgsql_check_function('fx()', performance_warnings := true);
1540- plpgsql_check_function
1541- ---------------------------------------------------------------------------------
1540+ plpgsql_check_function
1541+ ------------------------------------------------------------------------------------------------
15421542 error:42804:4:RETURN:returned record type does not match expected record type
1543- Detail: Returned type integer does not match expected type numeric in column 2 .
1543+ Detail: Returned type integer does not match expected type numeric in column "b" (position 2) .
15441544(2 rows)
15451545
15461546create or replace function fx()
@@ -1567,10 +1567,10 @@ begin
15671567end;
15681568$$ language plpgsql;
15691569select * from plpgsql_check_function('fx()', performance_warnings := true);
1570- plpgsql_check_function
1571- ---------------------------------------------------------------------------------
1570+ plpgsql_check_function
1571+ ------------------------------------------------------------------------------------------------
15721572 error:42804:4:RETURN NEXT:wrong record type supplied in RETURN NEXT
1573- Detail: Returned type integer does not match expected type numeric in column 2 .
1573+ Detail: Returned type integer does not match expected type numeric in column "b" (position 2) .
15741574(2 rows)
15751575
15761576create or replace function fx()
@@ -7609,10 +7609,10 @@ begin
76097609end;
76107610$$ language plpgsql;
76117611select * from plpgsql_check_function('f1()', performance_warnings => true);
7612- plpgsql_check_function
7613- ------------------------------------------------------------------------------------
7612+ plpgsql_check_function
7613+ ------------------------------------------------------------------------------------------------
76147614 error:42804:3:RETURN NEXT:returned record type does not match expected record type
7615- Detail: Returned type numeric does not match expected type integer in column 1 .
7615+ Detail: Returned type numeric does not match expected type integer in column "a" (position 1) .
76167616(2 rows)
76177617
76187618create or replace function f1()
@@ -7639,10 +7639,10 @@ begin
76397639end;
76407640$$ language plpgsql;
76417641select * from plpgsql_check_function('f1()', performance_warnings => true);
7642- plpgsql_check_function
7643- ------------------------------------------------------------------------------------
7642+ plpgsql_check_function
7643+ ------------------------------------------------------------------------------------------------
76447644 error:42804:4:RETURN NEXT:returned record type does not match expected record type
7645- Detail: Returned type numeric does not match expected type integer in column 1 .
7645+ Detail: Returned type numeric does not match expected type integer in column "a" (position 1) .
76467646(2 rows)
76477647
76487648drop function f1();
0 commit comments