Skip to content

Comments

fix(codegen/golang): Don't import "strings" for sqlc.slice() with pgx#3073

Merged
kyleconroy merged 1 commit intomainfrom
andrew/fix-golang-bad-strings-import
Dec 20, 2023
Merged

fix(codegen/golang): Don't import "strings" for sqlc.slice() with pgx#3073
kyleconroy merged 1 commit intomainfrom
andrew/fix-golang-bad-strings-import

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

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
alfonsodev pushed a commit to ExponentiaTeam/sqlc that referenced this pull request Oct 13, 2025
… pgx (sqlc-dev#3073)

Also fix the invalid test that should have caught this

Resolves sqlc-dev#3065
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