@@ -1312,10 +1312,10 @@ begin
1312
1312
end;
1313
1313
$$ language plpgsql;
1314
1314
select * from plpgsql_check_function('f1()', performance_warnings := true);
1315
- plpgsql_check_function
1316
- -----------------------------------------------------------------------------------
1315
+ plpgsql_check_function
1316
+ -------------------------------------------------------------------------------------------------
1317
1317
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) .
1319
1319
(2 rows)
1320
1320
1321
1321
drop function f1();
@@ -1355,10 +1355,10 @@ begin
1355
1355
end;
1356
1356
$$ language plpgsql;
1357
1357
select * from plpgsql_check_function('f1()', performance_warnings := true);
1358
- plpgsql_check_function
1359
- -----------------------------------------------------------------------------------
1358
+ plpgsql_check_function
1359
+ ------------------------------------------------------------------------------------------------
1360
1360
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) .
1362
1362
(2 rows)
1363
1363
1364
1364
drop function f1();
@@ -1367,10 +1367,10 @@ returns setof numeric as $$
1367
1367
begin return query select a;
1368
1368
end $$ language plpgsql;
1369
1369
select * from plpgsql_check_function('f1(int)', performance_warnings := true);
1370
- plpgsql_check_function
1371
- -----------------------------------------------------------------------------------
1370
+ plpgsql_check_function
1371
+ ---------------------------------------------------------------------------------------------------------
1372
1372
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) .
1374
1374
(2 rows)
1375
1375
1376
1376
drop function f1(int);
@@ -1537,10 +1537,10 @@ begin
1537
1537
end;
1538
1538
$$ language plpgsql;
1539
1539
select * from plpgsql_check_function('fx()', performance_warnings := true);
1540
- plpgsql_check_function
1541
- ---------------------------------------------------------------------------------
1540
+ plpgsql_check_function
1541
+ ------------------------------------------------------------------------------------------------
1542
1542
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) .
1544
1544
(2 rows)
1545
1545
1546
1546
create or replace function fx()
@@ -1567,10 +1567,10 @@ begin
1567
1567
end;
1568
1568
$$ language plpgsql;
1569
1569
select * from plpgsql_check_function('fx()', performance_warnings := true);
1570
- plpgsql_check_function
1571
- ---------------------------------------------------------------------------------
1570
+ plpgsql_check_function
1571
+ ------------------------------------------------------------------------------------------------
1572
1572
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) .
1574
1574
(2 rows)
1575
1575
1576
1576
create or replace function fx()
@@ -7609,10 +7609,10 @@ begin
7609
7609
end;
7610
7610
$$ language plpgsql;
7611
7611
select * from plpgsql_check_function('f1()', performance_warnings => true);
7612
- plpgsql_check_function
7613
- ------------------------------------------------------------------------------------
7612
+ plpgsql_check_function
7613
+ ------------------------------------------------------------------------------------------------
7614
7614
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) .
7616
7616
(2 rows)
7617
7617
7618
7618
create or replace function f1()
@@ -7639,10 +7639,10 @@ begin
7639
7639
end;
7640
7640
$$ language plpgsql;
7641
7641
select * from plpgsql_check_function('f1()', performance_warnings => true);
7642
- plpgsql_check_function
7643
- ------------------------------------------------------------------------------------
7642
+ plpgsql_check_function
7643
+ ------------------------------------------------------------------------------------------------
7644
7644
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) .
7646
7646
(2 rows)
7647
7647
7648
7648
drop function f1();
0 commit comments