Skip to content

[FIX] copyfrom imports#1626

Merged
kyleconroy merged 1 commit intosqlc-dev:mainfrom
positiveblue:fix-copyfrom-imports
May 22, 2022
Merged

[FIX] copyfrom imports#1626
kyleconroy merged 1 commit intosqlc-dev:mainfrom
positiveblue:fix-copyfrom-imports

Conversation

@positiveblue
Copy link

Depending on the commands used in your query.sql the copyfrom.go
may end up with unused package imports.

There is a patch for this problem that was merged in the #1386 PR.
However, it looks like some edge cases were left out of the fix.

This commit ensures that buildImports only has copyfrom queries
when called from copyfromImports.

Loading
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