Skip to content
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

Add additional test for PL/pgSQL parsing #32

Merged
merged 1 commit into from
Oct 26, 2023
Merged

Conversation

seanlinsley
Copy link
Member

The intention of this PR is to show that parse_plpgsql can be used to extract query text from a function.

@seanlinsley seanlinsley requested a review from a team October 26, 2023 16:26
"typname": "UNKNOWN"
}
},
"refname": "input"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's surprising that it couldn't find the data type for input, since it's clearly listed in the function arguments.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that might be a limitation of the libpg_query logic here - we could investigate and see if we can fix that, if helpful.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not strictly needed for what we're looking at internally; it was just surprising.

@seanlinsley seanlinsley merged commit 9faad34 into main Oct 26, 2023
3 checks passed
@seanlinsley seanlinsley deleted the plpgsql-tests branch October 26, 2023 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants