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

feat: support calling Postgres procedures with the macros #2271

Merged
merged 1 commit into from
Mar 4, 2023

Conversation

bgeron
Copy link
Contributor

@bgeron bgeron commented Jan 2, 2023

Fixes #1449 (I think). I verified that without the fix, an appropriate invocation to cargo test fails, and with the fix included the same invocation to cargo test passes.

I used INOUT in setup.sql because older versions of Postgres don't support OUT parameters.

@abonander
Copy link
Collaborator

@bgeron the code for the Postgres driver was moved to the sqlx-postgres subdirectory, can you rebase?

@bgeron
Copy link
Contributor Author

bgeron commented Feb 23, 2023

Sure thing, I merged. Actually the merge went through without conflicts (and successful rename) so I don't know what GitHub was on about 🤔

If you want me to squash (/real rebase) instead of a merge, just shoot me a message, or feel free to do it yourself.

@abonander
Copy link
Collaborator

CI doesn't want to run on this branch for whatever reason. Can you try actually rebasing instead of just merging main into your branch?

Fixes launchbadge#1449 (I think). I verified that the code fixes the new test.

I used INOUT in setup.sql because older versions of Postgres don't
support OUT parameters.
@bgeron bgeron force-pushed the pg-call-procedure branch from 00bab95 to 6ee25d6 Compare March 3, 2023 06:34
@bgeron
Copy link
Contributor Author

bgeron commented Mar 3, 2023

Sure thing, done.

@abonander abonander merged commit 1ff6a2a into launchbadge:main Mar 4, 2023
@bgeron bgeron deleted the pg-call-procedure branch March 17, 2023 16:50
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.

Unable to type check procedure CALL in postgresql
2 participants