We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.20.0
From this discord thread: https://discord.com/channels/946447283321438248/1145749639916683305
It looks like sqlc-generated Go code tries to use a non-existent pgtype.Uint32 for cid and oid database types when configured for pgx/v4 which imports from github.com/jackc/pgtype (see https://github.com/sqlc-dev/sqlc/blob/v1.20.0/internal/codegen/golang/postgresql_type.go#L481).
pgtype.Uint32
cid
oid
pgx/v4
github.com/jackc/pgtype
Note that with pgx/v5 configured, sqlc imports from github.com/jackc/pgx/v5/pgtype which does appear to have the pgtype.Uint32 type.
pgx/v5
github.com/jackc/pgx/v5/pgtype
See the playground link for an example.
No response
https://play.sqlc.dev/p/e8c728dddddc0248aae7194bc4d0fac902cc43ae72c2d726a2d7f10c683f82e2
PostgreSQL
Go
The text was updated successfully, but these errors were encountered:
fix(codegen): use correct Go types for cid/oid/tid/xid with pgx/v4
8c1d66a
resolves #2667
a8c2307
fix(codegen): use correct Go types for bit strings and cid/oid/tid/xi…
c75a09f
…d with pgx/v4 resolves #2667
faa1c9d
…d with pgx/v4 (#2668) resolves #2667
Successfully merging a pull request may close this issue.
Version
1.20.0
What happened?
From this discord thread: https://discord.com/channels/946447283321438248/1145749639916683305
It looks like sqlc-generated Go code tries to use a non-existent
pgtype.Uint32
forcid
andoid
database types when configured forpgx/v4
which imports from6github.com/jackc/pgtype
(see https://github.com/sqlc-dev/sqlc/blob/v1.20.0/internal/codegen/golang/postgresql_type.go#L481).Note that with
pgx/v5
configured, sqlc imports from6github.com/jackc/pgx/v5/pgtype
which does appear to have thepgtype.Uint32
type.See the playground link for an example.
Relevant log output
No response
Database schema
No response
SQL queries
No response
Configuration
No response
Playground URL
https://play.sqlc.dev/p/e8c728dddddc0248aae7194bc4d0fac902cc43ae72c2d726a2d7f10c683f82e2
What operating system are you using?
No response
What database engines are you using?
PostgreSQL
What type of code are you generating?
Go
The text was updated successfully, but these errors were encountered: