Skip to content

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

Merged
kyleconroy merged 15 commits into
sqlc-dev:mainfrom
ovadbar:psql_qs
Sep 15, 2021
Merged

Allow for mixed parameters types ($1 or ?) and sqlc.arg()#1072
kyleconroy merged 15 commits into
sqlc-dev:mainfrom
ovadbar:psql_qs

Conversation

@ovadbar

@ovadbar ovadbar commented Jul 1, 2021

Copy link
Copy Markdown
Contributor

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

@kyleconroy kyleconroy left a comment

Copy link
Copy Markdown
Collaborator

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.

Comment thread internal/sql/validate/param_style.go Outdated
Comment thread internal/sql/validate/param_style.go Outdated
@ovadbar
ovadbar requested a review from kyleconroy September 13, 2021 01:14
@ovadbar

ovadbar commented Sep 13, 2021 via email

Copy link
Copy Markdown
Contributor Author

@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