When generating a query using a WHERE ... IN (?) statement, I expected to get a function out that looked similar to func (q *Queries) Foo(ctx context.Context, in []interface{}) ([]string, error) but the in []interface{} parameter isn't included.
Current workaround is to export the query and then have sqlx handle it via it's support for in queries.
Relevant log output
No response
Database schema
CREATE TABLE foo (
hash TEXT NOT NULL PRIMARY KEY
)
SQL queries
-- name: Foo :many
SELECT * FROM foo WHERE hash IN (?) LIMIT 50;
Version
1.15.0
What happened?
When generating a query using a
WHERE ... IN (?)
statement, I expected to get a function out that looked similar tofunc (q *Queries) Foo(ctx context.Context, in []interface{}) ([]string, error)
but thein []interface{}
parameter isn't included.Current workaround is to export the query and then have sqlx handle it via it's support for in queries.
Relevant log output
No response
Database schema
SQL queries
Configuration
Playground URL
https://play.sqlc.dev/p/91e8edaab2a3e8f4c48e79732e5243f827fd23a9d137ebff6d7fd12429b5d1d8
What operating system are you using?
Linux, macOS
What database engines are you using?
No response
What type of code are you generating?
Go