Skip to content

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 alex@morningconsult.com

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 <alex@morningconsult.com>
@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