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
sqlc.slice(): Generate code with unused imports #3065
Activity
fix(codegen/golang): Don't import `"strings"` for `sqlc.slice()` with…
fix(codegen/golang): Don't import `"strings"` for `sqlc.slice()` with…
Jille commentedon Dec 21, 2023
I think you might be better off using:
SELECT * FROM authors WHERE id = any(sqlc.arg('id_list')::integer[]);This side-steps the bug and is probably better for statement caching done by the client.
fix(codegen/golang): Don't import `"strings"` for `sqlc.slice()` with…