-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Functions that declare a non-trivial cursor fail to compile #45
Comments
Thanks for reporting this. I wonder if the repeated create or replace function foo()
returns void
language plpgsql
as $$
DECLARE
mycur CURSOR FOR SELECT * from pg_database;
BEGIN
return;
END;
$$; If that doesn't work, it looks fixable with minor changes to the grammar specification. If you'd like to take a stab at it, I'll be happy to review and merge a PR. Otherwise, I will get to it but will probably take a week or two. |
Looks fairly simple to tweak, I'll take a look. |
hawicz
added a commit
to hawicz/piggly
that referenced
this issue
Jun 17, 2020
…iables in a declaration section. Also allow "COLLATE" and "DEFAULT" in regular variable declarations.
hawicz
added a commit
to hawicz/piggly
that referenced
this issue
Jun 17, 2020
…iables in a declaration section. Also allow "COLLATE" and "DEFAULT" in regular variable declarations.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A function that looks like this:
Results in:
On the other hand, changing it to say "... SELECT 1..." instead of "...SELECT *..." works (though of course it's not very useful to have a query that does effectively nothing).
The text was updated successfully, but these errors were encountered: