Skip to content

Allow for mixed parameters types ($1 or ?) and sqlc.arg() #1072

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

Merged
merged 15 commits into from
Sep 15, 2021

Conversation

ovadbar
Copy link
Contributor

@ovadbar ovadbar commented Jul 1, 2021

This builds on pull request #1071. I realized there were issues when postgresql was using ? format so I added support for that format. I figure it will be useful for porting sqlc code from mysql to postgres. What I prohibit is mixed use of $1 and ? formats.

@kyleconroy kyleconroy mentioned this pull request Sep 12, 2021
@kyleconroy kyleconroy changed the title Psql qs Allow for mixed parameters types ($1 or ? and sqlc.arg) Sep 12, 2021
@kyleconroy kyleconroy changed the title Allow for mixed parameters types ($1 or ? and sqlc.arg) Allow for mixed parameters types ($1 or ?) and sqlc.arg() Sep 12, 2021
Copy link
Collaborator

@kyleconroy kyleconroy left a comment

Choose a reason for hiding this comment

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

I left a few comments, but please let me know if you're free to work on this. If not, I'll merge it as-is and clean it up.

@ovadbar ovadbar requested a review from kyleconroy September 13, 2021 01:14
@ovadbar
Copy link
Contributor Author

ovadbar commented Sep 13, 2021 via email

@kyleconroy kyleconroy merged commit c2dcd56 into sqlc-dev:main Sep 15, 2021
@ovadbar ovadbar deleted the psql_qs branch September 15, 2021 05:15
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