-
Notifications
You must be signed in to change notification settings - Fork 804
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Depending on the commands used in your `query.sql` the `copyfrom.go` may end up with unused packge 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 branch information
1 parent
d458fbe
commit 1b6ba1e
Showing
3 changed files
with
23 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
internal/endtoend/testdata/copyfrom_imports/postgresql/pgx/go/query.sql.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters