Skip to content

chore: add plpgsql_check to testing - #318

Merged
AndrewJackson2020 merged 1 commit into
masterfrom
plpgsql_check
Oct 23, 2026
Merged

AndrewJackson2020 merged 1 commit into
masterfrom
plpgsql_check

Conversation

@AndrewJackson2020

@AndrewJackson2020 AndrewJackson2020 commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

This PR adds plpgsql_check to the pytest suite. It found 1 unused variable and a non returning function. Not critical but still nice to catch stuff like that in a deterministic/systematic way. Would be nice to figure out if there are any other checks that the maintainer would be willing to add that could benefit us here.

Want to hold off on merging this until I can get #304 merged. Also want to see an official xpg bump before merging this. Keeping this in draft until that happens.

@AndrewJackson2020

Copy link
Copy Markdown
Contributor Author

Looks like this PR would also have caught an issue on #304 involving an invalid ; after a begin statement in a sproc. I think we should consider merging this before making changes to any SQL for QA purposes.

#304 (comment)

@AndrewJackson2020
AndrewJackson2020 marked this pull request as ready for review October 21, 2026 21:23
@AndrewJackson2020
AndrewJackson2020 requested a review from a team as a code owner October 21, 2026 21:23
@AndrewJackson2020

Copy link
Copy Markdown
Contributor Author

Setting to "ready for review" as we just did a release on xpg.

Comment thread test/test_misc.py Outdated
@AndrewJackson2020

Copy link
Copy Markdown
Contributor Author

Went ahead and removed any SQL changes in this PR. Would like to merge #304 before making further SQL changes and would like to merge this first. As is this PR will grandfather in any lint issues flagged and future PR's will fix these.

@AndrewJackson2020
AndrewJackson2020 merged commit ddd4485 into master Oct 23, 2026
17 checks passed
@AndrewJackson2020
AndrewJackson2020 deleted the plpgsql_check branch October 23, 2026 21:35
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