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

fix copyfrom methods on interface not matching generated methods #1424

Merged
merged 1 commit into from
Feb 11, 2022
Merged

fix copyfrom methods on interface not matching generated methods #1424

merged 1 commit into from
Feb 11, 2022

Conversation

alexdulin
Copy link
Contributor

The methods generated for copyfrom queries correctly define a slice
of inputs on the function signatures, but the interface code that was
generated did not. Thus, the interface was not usable when any query
used copyfrom. This merge request updates the interface code template
to correctly use .Arg.SlicePair when building the interface.

Signed-off-by: Alex Dulin [email protected]

The methods generated for `copyfrom` queries correctly define a slice
of inputs on the function signatures, but the interface code that was
generated did not. Thus, the interface was not usable when any query
used `copyfrom`. This merge request updates the interface code template
to correctly use `.Arg.SlicePair` when building the interface.

Signed-off-by: Alex Dulin <[email protected]>
@kyleconroy kyleconroy merged commit 0c0a35e into sqlc-dev:main Feb 11, 2022
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