-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add handling for plpgsql LOOP and EXIT
- Loading branch information
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
PS002: Unsafe function creation: l() at line 1 | ||
PS005: Function without explicit search_path: l() at line 1 | ||
PS016: Unqualified function call: f1 at line 1 | ||
|
||
Errors: 0 Warnings: 3 Unknown: 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
create or replace function l() returns void as $func$ | ||
declare | ||
begin | ||
loop | ||
end loop; | ||
loop | ||
PERFORM f1('select 1'); | ||
exit when true; | ||
end loop; | ||
end | ||
$func$ language plpgsql; |