Skip to content

Commit 2357b6c

Browse files
committed
fix regress tests for 18
1 parent 77aa9fd commit 2357b6c

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

expected/plpgsql_check_active_3.out

+21-21
Original file line numberDiff line numberDiff line change
@@ -1312,10 +1312,10 @@ begin
13121312
end;
13131313
$$ language plpgsql;
13141314
select * 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

13211321
drop function f1();
@@ -1355,10 +1355,10 @@ begin
13551355
end;
13561356
$$ language plpgsql;
13571357
select * 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

13641364
drop function f1();
@@ -1367,10 +1367,10 @@ returns setof numeric as $$
13671367
begin return query select a;
13681368
end $$ language plpgsql;
13691369
select * 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

13761376
drop function f1(int);
@@ -1537,10 +1537,10 @@ begin
15371537
end;
15381538
$$ language plpgsql;
15391539
select * 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

15461546
create or replace function fx()
@@ -1567,10 +1567,10 @@ begin
15671567
end;
15681568
$$ language plpgsql;
15691569
select * 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

15761576
create or replace function fx()
@@ -7609,10 +7609,10 @@ begin
76097609
end;
76107610
$$ language plpgsql;
76117611
select * 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

76187618
create or replace function f1()
@@ -7639,10 +7639,10 @@ begin
76397639
end;
76407640
$$ language plpgsql;
76417641
select * 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

76487648
drop function f1();

expected/plpgsql_check_passive_2.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ end;
225225
$$ language plpgsql;
226226
select * from f1();
227227
WARNING: structure of query does not match function result type
228-
DETAIL: Returned type numeric does not match expected type integer in column 2.
228+
DETAIL: Returned type numeric does not match expected type integer in column "b" (position 2).
229229
CONTEXT: PL/pgSQL function f1() line 4 at RETURN QUERY
230230
PL/pgSQL function f1() line 4 at RETURN QUERY
231231
a | b

0 commit comments

Comments
 (0)