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
{{ message }}
Repository navigation
Trouble getting emit_pointers_for_null_types to apply to SQLite target #3167
I'm having some trouble getting the emit_pointers_for_null_types option to apply to a SQLite schema & queries, i.e. sql.Null* types aren't replaced with their pointer primitive variants. I've checked that other kinds of Go options work correctly, like emit_result_struct_pointers, emit_interface, and emit_json_tags, but not the null type option. I produced a minimal example that reproduces my issue in this playground link. Not sure if this is a SQLite specific issue, since we have a similar Postgres schema where emit_pointers_for_null_types works fine.
Activity
gregoryjjb commentedon Feb 16, 2024
This was fixed in 1.25.0 (#3026), your playground example works when I update the version: https://play.sqlc.dev/p/a3eacaca248da3c046efd82fca0056dd995a9a8eac903d5f8eb3117cf14cce84