Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

andrewmbenton
Copy link
Collaborator

Also fix the invalid test that should have caught this.

Resolves #3065

… pgx

Also fix the invalid test that should have caught this

Resolves #3065
@@ -390,7 +390,7 @@ func (i *importer) queryImports(filename string) fileImports {
}

sqlpkg := parseDriver(i.Options.SqlPackage)
if sqlcSliceScan() {
if sqlcSliceScan() && !sqlpkg.IsPGX() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:( so gross

@kyleconroy kyleconroy merged commit ce95162 into main Dec 20, 2023
@kyleconroy kyleconroy deleted the andrew/fix-golang-bad-strings-import branch December 20, 2023 18:39
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.

sqlc.slice(): Generate code with unused imports
2 participants