You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kyleconroy
changed the title
v1.17.2 Column override with imported go-type invalid when pointer:true
Column override with imported go-type invalid when pointer:true
Mar 2, 2023
Version
v1.17.2
What happened?
When override table column with imported type as pointer - type is not imports in queries.sql.go
example
override with type
github.com/some/package/types.CustomTypeName
as pointerhttps://play.sqlc.dev/p/ed5f9342ff8eda757c7bb8d1da9b27a94a734e2b98a6c8f73d08a10736ae9dae
generates query.sql.go
without override type import:
valid example
same override without pointer flag
https://play.sqlc.dev/p/19de6fe73aa60dba17237db3f83530cf2ad3c4b8fb61c891b12ec3143496cff9
generates query.sql.go
with valid import:
Relevant log output
No response
Database schema
SQL queries
Configuration
Playground URL
https://play.sqlc.dev/p/ed5f9342ff8eda757c7bb8d1da9b27a94a734e2b98a6c8f73d08a10736ae9dae
What operating system are you using?
macOS
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: