You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: expected/plpgsql_check_active.out
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1715,6 +1715,27 @@ select * from plpgsql_check_function_tb('foreach_array_loop()', performance_warn
1715
1715
foreach_array_loop | | | 00000 | routine is marked as STABLE, should be IMMUTABLE | | When you fix this issue, please, recheck other functions that uses this function. | performance | | |
1716
1716
(2 rows)
1717
1717
1718
+
create or replace function foreach_array_loop()
1719
+
returns void as
1720
+
$body$
1721
+
declare
1722
+
arr date[];
1723
+
el int;
1724
+
begin
1725
+
-- expression is not constant (else this check fails due tracking constant)
foreach_array_loop | 8 | FOREACH over array | 42804 | target type is different type than source type | cast "date" value to "integer" type | There are no possible explicit coercion between those types, possibly bug! | warning | | | at FOREACH over array
Copy file name to clipboardExpand all lines: expected/plpgsql_check_active_2.out
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1715,6 +1715,27 @@ select * from plpgsql_check_function_tb('foreach_array_loop()', performance_warn
1715
1715
foreach_array_loop | | | 00000 | routine is marked as STABLE, should be IMMUTABLE | | When you fix this issue, please, recheck other functions that uses this function. | performance | | |
1716
1716
(2 rows)
1717
1717
1718
+
create or replace function foreach_array_loop()
1719
+
returns void as
1720
+
$body$
1721
+
declare
1722
+
arr date[];
1723
+
el int;
1724
+
begin
1725
+
-- expression is not constant (else this check fails due tracking constant)
foreach_array_loop | 8 | FOREACH over array | 42804 | target type is different type than source type | cast "date" value to "integer" type | There are no possible explicit coercion between those types, possibly bug! | warning | | | at FOREACH over array
Copy file name to clipboardExpand all lines: expected/plpgsql_check_active_3.out
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1715,6 +1715,27 @@ select * from plpgsql_check_function_tb('foreach_array_loop()', performance_warn
1715
1715
foreach_array_loop | | | 00000 | routine is marked as STABLE, should be IMMUTABLE | | When you fix this issue, please, recheck other functions that uses this function. | performance | | |
1716
1716
(2 rows)
1717
1717
1718
+
create or replace function foreach_array_loop()
1719
+
returns void as
1720
+
$body$
1721
+
declare
1722
+
arr date[];
1723
+
el int;
1724
+
begin
1725
+
-- expression is not constant (else this check fails due tracking constant)
foreach_array_loop | 8 | FOREACH over array | 42804 | target type is different type than source type | cast "date" value to "integer" type | There are no possible explicit coercion between those types, possibly bug! | warning | | | at FOREACH over array
Copy file name to clipboardExpand all lines: expected/plpgsql_check_active_4.out
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1715,6 +1715,27 @@ select * from plpgsql_check_function_tb('foreach_array_loop()', performance_warn
1715
1715
foreach_array_loop | | | 00000 | routine is marked as STABLE, should be IMMUTABLE | | When you fix this issue, please, recheck other functions that uses this function. | performance | | |
1716
1716
(2 rows)
1717
1717
1718
+
create or replace function foreach_array_loop()
1719
+
returns void as
1720
+
$body$
1721
+
declare
1722
+
arr date[];
1723
+
el int;
1724
+
begin
1725
+
-- expression is not constant (else this check fails due tracking constant)
foreach_array_loop | 8 | FOREACH over array | 42804 | target type is different type than source type | cast "date" value to "integer" type | There are no possible explicit coercion between those types, possibly bug! | warning | | | at FOREACH over array
0 commit comments